]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make release script handle sub-RC cleanly.
authorAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 3 Dec 2008 04:11:46 +0000 (21:11 -0700)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 3 Dec 2008 04:11:46 +0000 (21:11 -0700)
mkrelease.sh

index fb1b9ee634a3862369e62935899552faea9618cc..df6a498ba847ea25b62dbe2b0fbee451aa73fe52 100755 (executable)
@@ -20,7 +20,7 @@ RELEASE_TIME=`date +%s`
 #
 # check that $rev has the right syntax
 #
-checkrev=`expr $rev : '\([0-9]\.[0-9]\.[A-Z0-9]*\)'`
+checkrev=`expr $rev : '\([0-9]\.[0-9]\.[A-Z0-9\-]*\)'`
 if test "$rev" != "$checkrev" ; then
        echo "revision '$rev' has incorrect syntax.  Should be like '3.0.STABLE1'"
        exit 1;