build: Generate reproducible doc/version.texi.
* build-aux/GNUmakefile.in (doc/version.texi): Use timestamp from git.
This commit is contained in:
parent
b6bad13883
commit
002dc6253a
|
@ -170,9 +170,12 @@ uninstall:
|
||||||
|
|
||||||
doc/version.texi: ${srcdest}doc/mes.texi GNUmakefile
|
doc/version.texi: ${srcdest}doc/mes.texi GNUmakefile
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
(set `LANG= date -r $< +'%d %B %Y'`;\
|
timestamp=$$({ git log --pretty=format:%ct -- $< \
|
||||||
echo "@set UPDATED $$1 $$2 $$3"; \
|
|| date +%s -r $<; } \
|
||||||
echo "@set UPDATED-MONTH $$2 $$3"; \
|
| sort -n -r | head -n 1); \
|
||||||
|
dmy=$$(date --date="@$$timestamp" "+%-d %B %Y"); \
|
||||||
|
(echo "@set UPDATED $$dmy"; \
|
||||||
|
echo "@set UPDATED-MONTH $$my"; \
|
||||||
echo "@set EDITION $(VERSION)"; \
|
echo "@set EDITION $(VERSION)"; \
|
||||||
echo "@set VERSION $(VERSION)") > $@
|
echo "@set VERSION $(VERSION)") > $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue