packages: chromium-browser/update-source.sh - silent mode

glen glen at pld-linux.org
Mon Feb 15 09:41:54 CET 2010


Author: glen                         Date: Mon Feb 15 08:41:54 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- silent mode

---- Files affected:
packages/chromium-browser:
   update-source.sh (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/chromium-browser/update-source.sh
diff -u packages/chromium-browser/update-source.sh:1.3 packages/chromium-browser/update-source.sh:1.4
--- packages/chromium-browser/update-source.sh:1.3	Wed Feb  3 13:24:54 2010
+++ packages/chromium-browser/update-source.sh	Mon Feb 15 09:41:49 2010
@@ -1,10 +1,25 @@
 #!/bin/sh
+# Usage:
+# ./update-source.sh
+# env variables controlling behaviour
+#  skip_distfiles=[0|1] - skip upload to distfiles if new version is fetched
+#  build_package=[0|1] - build package when new version is fetched
+#  publish_packages=[0|1] - publish built packages in ~/public_html/$dist/$arch
+#  quiet=[0|1] - discard stdout of process
+
 # work in package dir
 dir=$(dirname "$0")
 cd "$dir"
 
 # abort on errors
 set -e
+
+# setup $quiet, you may override with env it
+quiet=${quiet:-$(tty -s && echo 0 || echo 1)}
+if [ "$quiet" = "1" ]; then
+	# we do not want output when running on cron
+	exec 1>/dev/null
+fi
 
 baseurl=http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser
 
================================================================

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



More information about the pld-cvs-commit mailing list