maint: Generate doc/version[-LANG].texi using `mdate-from-git.scm'.

This replaces Automake's `build-aux/mdate-sh' with our own
`build-aux/mdate-from-git.scm' to use reproducible timestamps from Git
instead.

* build-aux/mdate-from-git.scm: New script.
* bootstrap: Use it to replace build-aux/mdate-sh.
* Makefile.am (EXTRA_DIST): Add it.

Change-Id: I17d0a7de9ffea397129c0db1728f86e28a4e245f
This commit is contained in:
Janneke Nieuwenhuizen 2024-04-14 09:42:25 +02:00
parent a47f228861
commit 2b8a2a6e72
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
3 changed files with 97 additions and 1 deletions

View file

@ -24,4 +24,10 @@ for lang in ${langs}; do
fi
done
exec autoreconf -vfi
autoreconf -vfi
# Replace Automake's build-aux/mdate-sh with build-aux/mdate-from-git, our
# own, reproducible version.
chmod +w build-aux/mdate-sh
rm -f build-aux/mdate-sh
ln -s mdate-from-git.scm build-aux/mdate-sh