packages (UBUNTU): chromium-browser/get-source.sh - use awk, instead of gre...

glen glen at pld-linux.org
Fri Oct 21 17:32:28 CEST 2011


Author: glen                         Date: Fri Oct 21 15:32:28 2011 GMT
Module: packages                      Tag: UBUNTU
---- Log message:
- use awk, instead of grep+cut

---- Files affected:
packages/chromium-browser:
   get-source.sh (1.2.2.5 -> 1.2.2.6) 

---- Diffs:

================================================================
Index: packages/chromium-browser/get-source.sh
diff -u packages/chromium-browser/get-source.sh:1.2.2.5 packages/chromium-browser/get-source.sh:1.2.2.6
--- packages/chromium-browser/get-source.sh:1.2.2.5	Thu Oct 20 20:13:27 2011
+++ packages/chromium-browser/get-source.sh	Fri Oct 21 17:32:23 2011
@@ -9,7 +9,7 @@
 WORK_DIR=$HOME/bzr/$PACKAGE_NAME.head.daily
 CHROMIUM=$HOME/svn/$PACKAGE_NAME-$CHANNEL
 
-VERSION=$(wget -qO - "$CHANNELS_URL?os=linux&channel=$CHANNEL" | grep -v "^os," | cut -d, -f3)
+VERSION=$(wget -qO - "$CHANNELS_URL?os=linux&channel=$CHANNEL" | awk -F, 'NR > 1{print $3}')
 VERSION_LOCK=$CHROMIUM/$VERSION
 
 if [ -e $VERSION_LOCK ]; then
================================================================

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



More information about the pld-cvs-commit mailing list