Skip to content

Commit

Permalink
Merge pull request #475 from trapexit/version
Browse files Browse the repository at this point in the history
fix version.hpp creation, again
  • Loading branch information
trapexit authored Mar 24, 2018
2 parents 0545da6 + 73e8867 commit 50384f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/update-version
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ fi

VERSION=$(git describe --always --tags --dirty)
if [ $? -ne 0 ]; then
exit 0
VERSION=$(cat VERSION)
fi

if [ "${VERSION}" = "" ]; then
VERSION="unknown"
fi

echo -n "${VERSION}" > VERSION
Expand Down

0 comments on commit 50384f4

Please sign in to comment.