diff options
author | Bruno Haible <bruno@clisp.org> | 2020-03-22 18:11:49 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-03-22 18:11:49 +0100 |
commit | 20cb263b54bc08ca315a12a8b9df2ead293237ef (patch) | |
tree | 46e3960162ff26c606f095615ff684b01e5cd943 /MODULES.html.sh | |
parent | 816ae468b18366d7f849ae6e370b315baebc2007 (diff) | |
download | gnulib-20cb263b54bc08ca315a12a8b9df2ead293237ef.tar.gz |
MODULES.html.sh: Add support for reproducible builds.
Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
* MODULES.html.sh: Print the date of the last gnulib commit, not the
current date.
Diffstat (limited to 'MODULES.html.sh')
-rwxr-xr-x | MODULES.html.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 '<LI>A POT file and some PO files' func_end UL func_echo '<HR>' -func_echo 'Generated from <CODE>MODULES.html.sh</CODE> 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 <CODE>MODULES.html.sh</CODE> from a git checkout as of ${pretty_date}." func_end BODY |