build: Undo changes that made reconf impossible in tarball releases. Fixes #187

This commit is contained in:
mintsuki
2022-07-02 12:13:57 +02:00
parent effb82320e
commit 2f0d48abe1
2 changed files with 3 additions and 3 deletions

View File

@@ -3,4 +3,5 @@
LC_ALL=C
export LC_ALL
( git describe --exact-match --tags $(git log -n1 --pretty='%h') 2>/dev/null || git log -n1 --pretty='%h' ) | sed 's/^v//g' | xargs printf '%s'
[ -f version ] || ( git describe --exact-match --tags $(git log -n1 --pretty='%h') 2>/dev/null || git log -n1 --pretty='%h' ) | sed 's/^v//g' | xargs printf '%s'
[ -f version ] && ( cat version 2>/dev/null ) | xargs printf '%s'