Browse Source

Merge pull request #475 from trapexit/version

fix version.hpp creation, again
pull/482/head 2.24.2
trapexit 7 years ago
committed by GitHub
parent
commit
50384f4e86
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/update-version

6
tools/update-version

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

Loading…
Cancel
Save