Remove v from git tag when generating version string
o9000 o9000
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
get_version.sh
→
get_version.sh
@@ -31,6 +31,7 @@ fi
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