From c5a3d88ae8e8d878a66228a0276c4b30357c464c Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Tue, 20 Jun 2017 10:24:09 +0200 Subject: [PATCH] Allow to override man-page date to make package build reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. --- doc/help2man | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/help2man b/doc/help2man index 192576c..c0c53b4 100755 --- a/doc/help2man +++ b/doc/help2man @@ -233,7 +233,7 @@ my ($help_text, $version_text) = map { $_, $ARGV[0] } $help_option, $version_option; -my $date = strftime "%B %Y", localtime; +my $date = strftime "%B %Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time); (my $program = $ARGV[0]) =~ s!.*/!!; my $package = $program; my $version;