]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Fix mkrelease.sh script (#237) M-staged-PR237
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 3 Jul 2018 03:28:52 +0000 (03:28 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 4 Jul 2018 04:21:49 +0000 (04:21 +0000)
Release of 4.1 revealed that this regex is not fully working.
The final .NN version field is now optional.

mkrelease.sh

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