make_pkg: get static version if git is not available

This commit is contained in:
David Adam 2019-02-28 21:08:02 +08:00
parent 73d9f80772
commit 83b4adffc0

View file

@ -5,6 +5,9 @@
VERSION=`git describe --always --dirty 2>/dev/null`
if test -z "$VERSION" ; then
echo "Could not get version from git"
if test -f version; then
VERSION=`cat version`
fi
fi
echo "Version is $VERSION"