summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2020-02-27 18:38:29 +0100
committerJanneke Nieuwenhuizen <janneke@gnu.org>2024-04-14 10:29:10 +0200
commitb0c33b1997e4a02e048ceac445b156b3a1eed76d (patch)
treeedc6e8856739f153429a369a2e721b62921922c2 /Makefile.am
parent81a4e76d9e840aa501de1237a807aa140a465b54 (diff)
maint: Use reproducible timestamps and name for tarball.
* Makefile.am (gen-tarball-version): Add reproducible timestamp to tarball. (am__tar): Use it in new variable, overriding the Automake default. (GZIP_ENV): New variable, overriding the Automake default.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 2b5e1450957..a5e49bc406e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,7 @@
7# Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> 7# Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
8# Copyright © 2017 Leo Famulari <leo@famulari.name> 8# Copyright © 2017 Leo Famulari <leo@famulari.name>
9# Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> 9# Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
10# Copyright © 2017, 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org> 10# Copyright © 2017, 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
11# Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> 11# Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12# Copyright © 2018 Nikita <nikita@n0.is> 12# Copyright © 2018 Nikita <nikita@n0.is>
13# Copyright © 2018 Julien Lepiller <julien@lepiller.eu> 13# Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
@@ -970,6 +970,7 @@ $(top_srcdir)/.version: config.status
970 970
971gen-tarball-version: 971gen-tarball-version:
972 echo $(VERSION) > "$(distdir)/.tarball-version" 972 echo $(VERSION) > "$(distdir)/.tarball-version"
973 git show HEAD --format=%ct --no-patch > $(distdir)/.tarball-timestamp
973 974
974gen-ChangeLog: 975gen-ChangeLog:
975 $(AM_V_GEN)if test -e .git; then \ 976 $(AM_V_GEN)if test -e .git; then \
@@ -1002,6 +1003,17 @@ dist-with-updated-version:
1002# Release management. 1003# Release management.
1003# 1004#
1004 1005
1006# Reproducible tarball
1007override GZIP_ENV = --best --no-name
1008# Be friendly to Debian; avoid using EPOCH
1009override am__tar = $${TAR-tar} \
1010 --sort=name \
1011 --mode=go=rX,u+rw,a-s \
1012 --mtime=@$$(cat "$$tardir"/.tarball-timestamp) \
1013 --owner=0 --group=0 --numeric-owner \
1014 -cf - \
1015 "$$tardir"
1016
1005releasedir = release-$(PACKAGE_VERSION) 1017releasedir = release-$(PACKAGE_VERSION)
1006 1018
1007PACKAGE_FULL_TARNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 1019PACKAGE_FULL_TARNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)