mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Build: Fix mydist rule when .git doesn't exist.
This commit is contained in:
parent
6e1326fcdf
commit
e45929260c
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ dist-hook:
|
||||||
|
|
||||||
# This works with GNU tar and gives cleaner package than normal 'make dist'.
|
# This works with GNU tar and gives cleaner package than normal 'make dist'.
|
||||||
mydist:
|
mydist:
|
||||||
|
VERSION=$(VERSION); \
|
||||||
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
|
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
|
||||||
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
|
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
|
||||||
test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
|
test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
|
||||||
|
|
Loading…
Reference in a new issue