From 477d08b5da2d28b4e84117277608be41edef5135 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 12 Jul 2015 18:23:06 +0200 Subject: [PATCH] Remove v from git tag when generating version string --- get_version.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/get_version.sh b/get_version.sh index 98ddb96..e63c602 100755 --- a/get_version.sh +++ b/get_version.sh @@ -31,6 +31,7 @@ then fi VERSION=$(git describe --exact-match 2>/dev/null || echo "$MAJOR-git$(git show -s --pretty=format:%cI.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g')")$DIRTY +VERSION=$(echo "$VERSION" | sed 's/^v//') echo '#define VERSION_STRING "'$VERSION'"' > version.h echo $VERSION