packages: v8/update-source.sh - check version by basever only
glen
glen at pld-linux.org
Sun Dec 4 11:16:02 CET 2011
Author: glen Date: Sun Dec 4 10:16:02 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- check version by basever only
---- Files affected:
packages/v8:
update-source.sh (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/v8/update-source.sh
diff -u packages/v8/update-source.sh:1.1 packages/v8/update-source.sh:1.2
--- packages/v8/update-source.sh:1.1 Thu Nov 17 22:06:44 2011
+++ packages/v8/update-source.sh Sun Dec 4 11:15:57 2011
@@ -22,9 +22,15 @@
fi
if [ -z "$version" ]; then
- echo "Looking for latest version..."
- version=$(svn ls $baseurl/tags/ | sort -V | tail -n1)
+ basever=$(awk '/^Version:/{split($2, v, "."); printf("%d[.]%d[.]%d\n", v[1], v[2], v[3])}' $specfile)
+ echo "Looking for latest version for $basever..."
+ version=$(svn ls $baseurl/tags/ | grep "^$basever\." | sort -V | tail -n1)
version=${version%/}
+fi
+
+if [ -z "$version" ]; then
+ echo >&2 "Failed to lookup version"
+ exit 1
fi
if [ "$version" = "trunk" ]; then
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/v8/update-source.sh?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list