1
0
镜像自地址 https://git.tukaani.org/xz.git 已同步 2026-10-31 03:14:56 +00:00

Put the git commit to the filename in mydist rule.

这个提交包含在:
Lasse Collin 2010-06-11 10:40:28 +03:00
父节点 d8b41eedce
当前提交 3e49c8acb0

查看文件

@ -77,5 +77,9 @@ 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:
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' \ TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
$(MAKE) dist-gzip $(MAKE) VERSION="$$VERSION" dist-gzip