diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-11-27 12:26:00 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-11-28 00:11:06 +0000 |
commit | c1b3d65877913f139175920699ad2c5aed592ea8 (patch) | |
tree | 0177dfe5c861653843a2e912002536cbde5520ff /man/local.mk | |
parent | 93e83ff52f3af65023f7a95fb0f79e660603ebe3 (diff) | |
download | coreutils-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 'man/local.mk')
-rw-r--r-- | man/local.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/man/local.mk b/man/local.mk index d1117606f..56eda6b8d 100644 --- a/man/local.mk +++ b/man/local.mk @@ -184,7 +184,8 @@ endif && $(MKDIR_P) $$t \ && (cd $$t && $(LN_S) '$(abs_top_builddir)/src/'$$prog$(EXEEXT) \ $$argv$(EXEEXT)) \ - && $(run_help2man) \ + && : $${SOURCE_DATE_EPOCH=`cat $(srcdir)/.timestamp 2>/dev/null || :`} \ + && export SOURCE_DATE_EPOCH && $(run_help2man) \ --source='$(PACKAGE_STRING)' \ --include=$(srcdir)/man/$$name.x \ --output=$$t/$$name.1 \ |