From 93f3c5639bbbcd2e8a7c9d41083d3b74bf78f747 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sat, 17 Nov 2012 21:32:47 +0100 Subject: [PATCH] Take a tag with a translation into account --- archive.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archive.sh b/archive.sh index dad1e92..9a8da29 100755 --- a/archive.sh +++ b/archive.sh @@ -55,7 +55,8 @@ if [[ -n "$Untracked" ]] ; then fi # is the git tag set? -GitVersion=$(git describe) +# a valid tag can be v2.3.3 or v2.3.3_da to indicate version 2.3.3 with the Danish translation +GitVersion=$(git describe | sed -e 's/^\(v[0-9][0-9.]*\)_.*/\1/') if [[ "$GitVersion" != "v$Version" ]] ; then echo "Git tag not set for version $Version. Use command:" echo "git tag -a \"v$Version\" -m \"v$Version\"" -- 2.47.2