make_pkg: get static version if git is not available
This commit is contained in:
parent
73d9f80772
commit
83b4adffc0
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user