summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-11-27 12:26:00 +0000
committerPádraig Brady <P@draigBrady.com>2015-11-28 00:11:06 +0000
commitc1b3d65877913f139175920699ad2c5aed592ea8 (patch)
tree0177dfe5c861653843a2e912002536cbde5520ff /Makefile.am
parent93e83ff52f3af65023f7a95fb0f79e660603ebe3 (diff)
downloadcoreutils-c1b3d65877913f139175920699ad2c5aed592ea8.tar.xz
build: support reproducible builds with consistent man pages
Use a consistent date in the generated man pages even if SOURCE_DATE_EPOCH is not set. * Makefile.am: Generate .timestamp in the tarball. * man/local.mk: Pass .timestamp if available to help2man. * man/dummy-man: Don't bother with the year in the stub. Reported in http://bugs.debian.org/806321
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index cc4fde7aa..d1004e1a8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -105,6 +105,7 @@ BUILT_SOURCES = .version
# See the rm_subst comment for details.
dist-hook: gen-ChangeLog
$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
+ $(AM_V_GEN)date +%s > $(distdir)/.timestamp
$(AM_V_at)perl -pi -e '$(rm_subst)' $(distdir)/Makefile.in
gen_start_date = 2008-02-08