diff options
Diffstat (limited to 'Build/source/extra/xz/Makefile.in')
-rw-r--r-- | Build/source/extra/xz/Makefile.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/extra/xz/Makefile.in b/Build/source/extra/xz/Makefile.in index 7d720190e03..a9014e6d32d 100644 --- a/Build/source/extra/xz/Makefile.in +++ b/Build/source/extra/xz/Makefile.in @@ -273,7 +273,6 @@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -884,8 +883,12 @@ dist-hook: # This works with GNU tar and gives cleaner package than normal 'make dist'. mydist: + if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \ + SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \ + test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \ + fi; \ TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \ - $(MAKE) dist-gzip + $(MAKE) VERSION="$$VERSION" dist-gzip # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. |