MODULES.html.sh: Add support for reproducible builds.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Mar 2020 17:11:49 +0000 (18:11 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Mar 2020 17:11:49 +0000 (18:11 +0100)
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.

ChangeLog
MODULES.html.sh

index cf93eef1151a20ac8ca9d7800a98ca0072c2f95a..53f61ebbe478f05c58ed3319f2456607bd123049 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-03-22  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
 2020-03-22  Bruno Haible  <bruno@clisp.org>
 
        Several modules: Depend on stat.
index 7eab5e547a412eb179b8f5242cda61aa34f452d2..b1638dada15c35dd971f7d3efd2a60ec67153e1a 100755 (executable)
@@ -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