packages: chromium-browser/update-source.sh - update to work with default vars

glen glen at pld-linux.org
Sat Dec 3 15:28:32 CET 2011


Author: glen                         Date: Sat Dec  3 14:28:32 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- update to work with default vars

---- Files affected:
packages/chromium-browser:
   update-source.sh (1.28 -> 1.29) 

---- Diffs:

================================================================
Index: packages/chromium-browser/update-source.sh
diff -u packages/chromium-browser/update-source.sh:1.28 packages/chromium-browser/update-source.sh:1.29
--- packages/chromium-browser/update-source.sh:1.28	Fri Nov 11 15:07:51 2011
+++ packages/chromium-browser/update-source.sh	Sat Dec  3 15:28:27 2011
@@ -7,7 +7,7 @@
 #  publish_packages=[0|1] - publish built packages in ~/public_html/$dist/$arch
 #  quiet=[0|1] - discard stdout of process
 
-test $prep_package = 0 && build_package=0
+test "$prep_package" = 0 && build_package=0
 
 pkg=chromium-browser
 specfile=$pkg.spec
@@ -26,6 +26,7 @@
 	exec 1>/dev/null
 fi
 
+test -e $specfile || cvs up $specfile
 # take baseurl from .spec Source0
 baseurl=$(awk '/^Source0:/{print $2}' $specfile | xargs dirname)
 
@@ -135,7 +136,7 @@
 EOF
 
 command=-bp
-test $build_package = 1 && command=-bb
+test "$build_package" = 1 && command=-bb
 > $logfile
 HOME_ETC=$outdir \
 	../builder $command --clean \
================================================================

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



More information about the pld-cvs-commit mailing list