Remove v from git tag when generating version string
This commit is contained in:
parent
50a07df5d2
commit
477d08b5da
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue