]> git.pld-linux.org Git - packages/closure-compiler.git/commitdiff
- update according to site changes (the build/built message is filled manually by...
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 11 Jan 2012 17:25:06 +0000 (17:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    get-source.sh -> 1.2

get-source.sh

index 0ab1dd0eb6b108b880d57dc43d0fff0ca842e813..349e9362a5a25cce1f9ce33767f65aeb9b9bdcaf 100644 (file)
@@ -5,6 +5,7 @@ svn=http://$p.googlecode.com/svn/trunk
 dl=https://code.google.com/p/$p/downloads/list?can=3
 
 set -x
+set -e
 
 html() {
        if [ -z "$html" ]; then
@@ -13,8 +14,11 @@ html() {
        echo "$html"
 }
 
-rev=$(html | perl -nne '/'$fn'-latest.tar.gz.*Build at r(\d+)/and print $1')
-date=$(html | perl -ne '/'$fn'-(\d+).tar.gz.*Build at r'$rev'/and print $1')
+rev=$(html | perl -ne '/'$fn'-.+tar.*Buil[dt] at r?(\d+)/and print $1')
+test -n "$rev"
+
+date=$(html | perl -ne '/'$fn'-(\d+).tar.gz.*Built at r?'$rev'/and print $1')
+test -n "$date"
 
 d=$p-$date
 if [ ! -d "$d" ]; then
This page took 0.123302 seconds and 4 git commands to generate.