1
0
mirror of https://git.tukaani.org/xz.git synced 2025-02-21 07:58:27 +00:00

Build: Use "git describe --abbrev=8" in snapshot tarball names

8 is more likely to be reproducible than the old 4 without being
excessively long for a small repository like this.
This commit is contained in:
Lasse Collin 2025-02-04 13:20:52 +02:00
parent 0ce97987c5
commit c6b15e7045
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -101,7 +101,7 @@ mydist:
VERSION=$(VERSION); \
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
$(SHELL) "$(srcdir)/build-aux/license-check.sh" || exit 1; \
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=8 | cut -b2-`; \
test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
fi; \
TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w --sort=name' \