packages: chromium-browser-bin/update-source.sh - Uncommented ability to up...

caleb caleb at pld-linux.org
Sat Feb 11 19:41:12 CET 2012


Author: caleb                        Date: Sat Feb 11 18:41:12 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Uncommented ability to update based on trunk version.
- Added some logic so that the svn revision number is available in the version variable file.

---- Files affected:
packages/chromium-browser-bin:
   update-source.sh (1.20 -> 1.21) 

---- Diffs:

================================================================
Index: packages/chromium-browser-bin/update-source.sh
diff -u packages/chromium-browser-bin/update-source.sh:1.20 packages/chromium-browser-bin/update-source.sh:1.21
--- packages/chromium-browser-bin/update-source.sh:1.20	Mon Jan 23 23:39:27 2012
+++ packages/chromium-browser-bin/update-source.sh	Sat Feb 11 19:41:07 2012
@@ -17,8 +17,8 @@
 	echo "Using $rev from spec file"
 elif [ "$1" == "trunk" ]; then
 	echo "Fetching latest revno... "
-	#rev=$(wget -q -O - http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux/LAST_CHANGE)
-	#rev64=$(wget -q -O - http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux_x64/LAST_CHANGE)
+	rev=$(wget -q -O - http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux/LAST_CHANGE)
+	rev64=$(wget -q -O - http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux_x64/LAST_CHANGE)
 	# be sure that we use same rev on both arch
 	if [ "$rev" != "$rev64" ]; then
 		echo "Current 32bit build ($rev) does not match 64bit build ($rev64)"
@@ -69,7 +69,8 @@
 if [ "$oldrev" != "$rev" ]; then
 	if [ -z "$version" ]; then
 		wget -q -O VERSION.sh http://src.chromium.org/viewvc/chrome/trunk/src/chrome/VERSION?revision=$rev
-		if grep -Ev '^(MAJOR|MINOR|BUILD|PATCH)=[0-9]+$' VERSION.sh >&2; then
+		echo REV=$rev >> VERSION.sh
+		if grep -Ev '^(MAJOR|MINOR|BUILD|PATCH|REV)=[0-9]+$' VERSION.sh >&2; then
 			echo >&2 "I refuse to execute garbled file due security concerns"
 			exit 1
 		fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/chromium-browser-bin/update-source.sh?r1=1.20&r2=1.21&f=u



More information about the pld-cvs-commit mailing list