packages: apache-mod_pagespeed/get-source.sh - fix use of latest version

glen glen at pld-linux.org
Sat Oct 8 12:58:04 CEST 2011


Author: glen                         Date: Sat Oct  8 10:58:04 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix use of latest version

---- Files affected:
packages/apache-mod_pagespeed:
   get-source.sh (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/apache-mod_pagespeed/get-source.sh
diff -u packages/apache-mod_pagespeed/get-source.sh:1.2 packages/apache-mod_pagespeed/get-source.sh:1.3
--- packages/apache-mod_pagespeed/get-source.sh:1.2	Sat Oct  8 12:56:47 2011
+++ packages/apache-mod_pagespeed/get-source.sh	Sat Oct  8 12:57:58 2011
@@ -6,18 +6,11 @@
 pkg=modpagespeed
 baseurl=http://modpagespeed.googlecode.com/svn
 # leave empty to use latest tag, or "trunk" for trunk
-version=0.9.18.9
+version=
 spec=apache-mod_pagespeed.spec
 
 # abort on errors
 set -e
-
-# gclient needs python 2.6
-if python -c "import sys; sys.exit(sys.version[:3] > '2.6')"; then
-	echo >&2 "Need python >= 2.6 for gclient"
-	exit 1
-fi
-
 # work in package dir
 dir=$(dirname "$0")
 cd "$dir"
@@ -29,7 +22,7 @@
 if [ -z "$version" ]; then
 	echo "Looking for latest version..."
 	version=$(svn ls $baseurl/tags/ | sort -V | tail -n1)
-	version=${version#/}
+	version=${version%/}
 fi
 
 if [ "$version" = "trunk" ]; then
@@ -40,6 +33,12 @@
 	echo "Version: $version"
 	svnurl=$baseurl/tags/$version/src
 	tarball=$pkg-$version.tar.bz2
+fi
+
+# gclient needs python 2.6
+if python -c "import sys; sys.exit(sys.version[:3] > '2.6')"; then
+	echo >&2 "Need python >= 2.6 for gclient"
+	exit 1
 fi
 
 wget -c http://src.chromium.org/svn/trunk/tools/depot_tools.tar.gz
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/apache-mod_pagespeed/get-source.sh?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list