Skip to content

Commit

Permalink
Remove v from git tag when generating version string
Browse files Browse the repository at this point in the history
  • Loading branch information
o9000 committed Jul 12, 2015
1 parent 50a07df commit 477d08b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions get_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 477d08b

Please sign in to comment.