diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2012-11-24 22:51:55 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2012-11-24 22:54:08 +0000 |
commit | 2aee48d6f2a6526fffe18cd619fde9693f400034 (patch) | |
tree | 57a1a470b4b8b1527af4934a7ff5e43f5471632f /doc/doc-docbook/Makefile | |
parent | 2369bf9c1f5337d3ea493670d214fefda00c8e66 (diff) |
Insert version number and date into documentation at build time. Bug 1318.
Write a temp file with macro definitions from the makefile, and include it
from the doc sources. Pass the version to make from the perl script.
It is still needed to manually update the previous-version number and
changebar indicators (.new/.wen) manually.
Diffstat (limited to 'doc/doc-docbook/Makefile')
-rw-r--r-- | doc/doc-docbook/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/doc-docbook/Makefile b/doc/doc-docbook/Makefile index 7f3f07166..07eb322fa 100644 --- a/doc/doc-docbook/Makefile +++ b/doc/doc-docbook/Makefile @@ -23,10 +23,22 @@ exim.8: spec.xml x2man ######################################################################## +.PHONY: local_params +local_params: + echo .macro version > $@ + echo $(EXIM_VER) >> $@ + echo .endmacro >> $@ + echo .macro fulldate >> $@ + date "+%d %b %Y" >> $@ + echo .endmacro >> $@ + echo .macro year >> $@ + date "+%Y" >> $@ + echo .endmacro >> $@ + ############################### FILTER ################################# -filter.xml: filter.xfpt +filter.xml: local_params filter.xfpt xfpt filter.xfpt filter-pr.xml: filter.xml Pre-xml @@ -104,7 +116,7 @@ filter.info: filter-info.xml ################################ SPEC ################################## -spec.xml: spec.xfpt +spec.xml: local_params spec.xfpt xfpt spec.xfpt spec-pr.xml: spec.xml Pre-xml |