build: Misc build system updates
This commit is contained in:
@@ -8,12 +8,12 @@ test -z "$srcdir" && srcdir=.
|
||||
|
||||
cd "$srcdir"
|
||||
|
||||
if [ -f version ]; then
|
||||
if test -f version; then
|
||||
printf '%s' "$(cat version)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! [ -d .git ] || ! git log -n1 --pretty='%h' >/dev/null 2>&1; then
|
||||
if ! test -d .git || ! git log -n1 --pretty='%h' >/dev/null 2>&1; then
|
||||
printf 'UNVERSIONED'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user