]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
- update to work with default vars
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Dec 2011 14:28:27 +0000 (14:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    update-source.sh -> 1.29

update-source.sh

index 680b86bc7665ef10489888da3851b008f43a8ddf..060884e103ddfd7e4ee3a0856dfeb47ece2942ed 100644 (file)
@@ -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 @@ if [ "$quiet" = "1" ]; then
        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 @@ cat > $outdir/.builderrc <<-EOF
 EOF
 
 command=-bp
-test $build_package = 1 && command=-bb
+test "$build_package" = 1 && command=-bb
 > $logfile
 HOME_ETC=$outdir \
        ../builder $command --clean \
This page took 0.058127 seconds and 4 git commands to generate.