summaryrefslogtreecommitdiffhomepage
path: root/scripts/version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/version.sh')
-rwxr-xr-xscripts/version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/version.sh b/scripts/version.sh
index f3948bc..03fb3aa 100755
--- a/scripts/version.sh
+++ b/scripts/version.sh
@@ -5,11 +5,11 @@ GIT_DIR="${SCRIPT_DIR}/../.git"
if test -d "${GIT_DIR}" ; then
if type git >/dev/null 2>&1 ; then
- gitstr=$(git describe --match '[0-9]*.[0-9]*.[0-9]*' 2>/dev/null)
+ gitstr=$(git describe --match '[0-9]*.[0-9]*.*' 2>/dev/null)
if test "x$?" != x0 ; then
sed 's/$/-git/' < VERSION
else
- printf "%s\n" "$gitstr" | sed -e 's/-/-git-/'
+ printf "%s\n" "$gitstr" | sed -e 's/-g/-git-/'
fi
else
sed 's/$/-git/' < VERSION