fix version.hpp creation, again

This commit is contained in:
Antonio SJ Musumeci 2018-03-24 09:51:25 -04:00
parent 0545da67ff
commit 73e8867400

View File

@ -7,7 +7,11 @@ fi
VERSION=$(git describe --always --tags --dirty) VERSION=$(git describe --always --tags --dirty)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 0 VERSION=$(cat VERSION)
fi
if [ "${VERSION}" = "" ]; then
VERSION="unknown"
fi fi
echo -n "${VERSION}" > VERSION echo -n "${VERSION}" > VERSION