packages: chromium-browser/update-source.sh - enable autobuilding

glen glen at pld-linux.org
Wed Feb 3 11:43:45 CET 2010


Author: glen                         Date: Wed Feb  3 10:43:45 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- enable autobuilding

---- Files affected:
packages/chromium-browser:
   update-source.sh (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/chromium-browser/update-source.sh
diff -u packages/chromium-browser/update-source.sh:1.1 packages/chromium-browser/update-source.sh:1.2
--- packages/chromium-browser/update-source.sh:1.1	Wed Feb  3 11:33:39 2010
+++ packages/chromium-browser/update-source.sh	Wed Feb  3 11:43:40 2010
@@ -1,4 +1,11 @@
 #!/bin/sh
+# work in package dir
+dir=$(dirname "$0")
+cd "$dir"
+
+# abort on errors
+set -e
+
 baseurl=http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser
 
 if [ "$1" ]; then
@@ -20,11 +27,11 @@
 		echo >&2 "${1##*/}: need wget to fetch tarball"
 		exit 1
 	fi
-	wget -c $tarball
+	wget -c $url
 	upload=$tarball
 fi
 
-if [ "$upload" ] && [ -x /usr/bin/lftp ]; then
+if [ -z "$skip_distfiles" ] && [ "$upload" ] && [ -x /usr/bin/lftp ]; then
 	echo "Uploading to dropin. ^C to abort"
 	../dropin $upload
 fi
@@ -46,9 +53,13 @@
 	sed -i -e "
 		s/^\(%define[ \t]\+svnver[ \t]\+\)[0-9]\+\$/\1$svnver/
 		s/^\(%define[ \t]\+svndate[ \t]\+\)[0-9]\+\$/\1$svndate/
-		s/^\(Version[ \t]\+\)[0-9]\+\$/\1$version/
+		s/^\(Version:[ \t]\+\)[.0-9]\+\$/\1$version/
 	" $specfile
 	../builder -ncs -5 $specfile
+
+	if [ "$build_package" ]; then
+		../builder -bb --define '_enable_debug_packages 0' $specfile
+	fi
 else
 	echo "$specfile already up to $newtar"
 fi
================================================================

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



More information about the pld-cvs-commit mailing list