1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

texi2txt: Use ChangeLog date instead of build date

in order to make builds reproducible. See
https://reproducible-builds.org/
for why this is good.

This date call works with GNU date and BSD date. Without this patch,
/usr/share/doc/packages/WindowMaker/README.i18n will differ in the
line An alternative solution could use the $SOURCE_DATE_EPOCH
variable defined in
https://reproducible-builds.org/specs/source-date-epoch/

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
Bernhard M. Wiedemann
2017-12-19 21:13:21 +01:00
committed by Carlos R. Mafra
parent bfd88e07e6
commit 36879de261

View File

@@ -822,7 +822,7 @@ function execute_commands(line, replaced_line, command) {
} else if (command == "today") {
# Make sure the date will be in english (we use "C" because it not certain
# that the English locale is enabled on the machine of the user)
replaced_line = replaced_line "'"`LANG=C date '+%d %B %Y' | sed -e 's,^0,,' `"'";
replaced_line = replaced_line "'"`LANG=C date -u -r ../../ChangeLog '+%d %B %Y' | sed -e 's,^0,,' `"'";
# Commands to display text in a special style ##############################
} else if (command == "asis") {