+if [ "$1" == "spec" ]; then
+ rev=$(awk '/^%define.*svnrev/{print $NF}' $specfile)
+ 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)
+ # 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)"
+ echo "The upstream buildbot probably failed."
+ if [ "$rev" -lt "$rev64" ]; then
+ echo "Using latest 32bit revision..."
+ rev64=$rev
+ else
+ echo "Using latest 64bit revision..."
+ rev=$rev64
+ fi
+ fi
+ echo "Using trunk $rev"
+elif [ "$1" ]; then