]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Expect the git tag to start with the letter v v2.3.3
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Tue, 13 Nov 2012 18:18:12 +0000 (19:18 +0100)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Tue, 13 Nov 2012 18:18:12 +0000 (19:18 +0100)
A git tag for the released version must be v2.3.3 and not just 2.3.3 as
enforced by the previous version of this script.

archive.sh

index dc3621fe935ace23a878e95ff0b0989ff1f440ce..dad1e926c783a9fe9de095426f1593de9a722af7 100755 (executable)
@@ -56,9 +56,9 @@ fi
 
 # is the git tag set?
 GitVersion=$(git describe)
-if [[ "$GitVersion" != "$Version" ]] ; then
+if [[ "$GitVersion" != "v$Version" ]] ; then
        echo "Git tag not set for version $Version. Use command:"
-       echo "git tag -a \"$Version\" -m \"$Version\""
+       echo "git tag -a \"v$Version\" -m \"v$Version\""
        exit 1
 fi