Merge pull request #475 from trapexit/version

fix version.hpp creation, again
This commit is contained in:
trapexit 2018-03-24 06:53:35 -07:00 committed by GitHub
commit 50384f4e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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