# Source: Author: Reiner Herrmann Description: Support SOURCE_DATE_EPOCH for timestamps To allow generating documents in a reproducible way, allow overriding the timestamp through the environment. . See also: https://reproducible-builds.org/specs/source-date-epoch/ Bug-Debian: https://bugs.debian.org/800797 --- a/helpers/docbook2man-spec.pl +++ b/helpers/docbook2man-spec.pl @@ -57,6 +57,7 @@ use SGMLS; # Use the SGMLS package. use SGMLS::Output; # Use stack-based output. use SGMLS::Refs; +use POSIX qw(strftime setlocale LC_TIME); ######################################################################## # SGMLSPL script produced automatically by the script sgmlspl.pl @@ -279,6 +280,10 @@ _END_BANNER my $date = `date "+%d %B %Y"`; + if ($ENV{SOURCE_DATE_EPOCH}) { + setlocale(LC_TIME, "C"); + $date = strftime("%d %B %Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time)); + } my $manpage_date = $manpage_date || $date ; output '.TH "'; yrefslogtreecommitdiff
AgeCommit message (Expand)Author
2022-10-17installer: Factorize url-alive? in internet check....* gnu/installer/newt/network.scm (wait-service-online): Factorize url-alive? in internet check. Andrew Tropin
2022-10-17installer: Relax internet check availability criteria....Checks the availability of the mirror bordeaux.guix.gnu.org in addition to ci.guix.gnu.org. This allows to proceed the installation if the ci.guix.gnu.org is unavailable. * gnu/installer/newt/network.scm (wait-service-online): Relax internet check availability criteria. Signed-off-by: Andrew Tropin <andrew@trop.in> aleksandr barakin