From: Bruno Haible Date: Sun, 22 Mar 2020 17:11:49 +0000 (+0100) Subject: MODULES.html.sh: Add support for reproducible builds. X-Git-Tag: v1.0~4183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20cb263b54bc08ca315a12a8b9df2ead293237ef;p=thirdparty%2Fgnulib.git MODULES.html.sh: Add support for reproducible builds. Reported by Bernhard M. Wiedemann in . * MODULES.html.sh: Print the date of the last gnulib commit, not the current date. --- diff --git a/ChangeLog b/ChangeLog index cf93eef115..53f61ebbe4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2020-03-22 Bruno Haible + + MODULES.html.sh: Add support for reproducible builds. + Reported by Bernhard M. Wiedemann in + . + * MODULES.html.sh: Print the date of the last gnulib commit, not the + current date. + 2020-03-22 Bruno Haible Several modules: Depend on stat. diff --git a/MODULES.html.sh b/MODULES.html.sh index 7eab5e547a..b1638dada1 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -3695,7 +3695,9 @@ func_echo '
  • A POT file and some PO files' func_end UL func_echo '
    ' -func_echo 'Generated from MODULES.html.sh on '`LC_ALL=C date +"%e %B %Y"`. +git_checkout_date=`git log -n 1 --date=iso --format=fuller | sed -n -e 's/^CommitDate: //p'` +pretty_date=`LC_ALL=C date +"%e %B %Y" --date="$git_checkout_date"` +func_echo "Generated by MODULES.html.sh from a git checkout as of ${pretty_date}." func_end BODY