diff options
author | Keith Packard <keithp@keithp.com> | 2018-10-05 21:40:13 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-05 21:40:13 -0700 |
commit | cc70746e8efa6cadb23cbfcb11ddb51574c512a9 (patch) | |
tree | 46d2215e2b6f3d7de02f9edabf4cc7618d846610 /doc | |
parent | 8e87b2626cdd81c128ac0cb5db03350aff67feac (diff) |
doc: Use RELEASE_DATE to set PDF timestamps using faketime
This ensures that the generated PDF files do not depend on the time of
the build and only on the date of the release.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am (renamed from doc/Makefile) | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/Makefile b/doc/Makefile.am index 5e175cbe..0139d313 100644 --- a/doc/Makefile +++ b/doc/Makefile.am @@ -2,6 +2,8 @@ # http://docbook.sourceforge.net/release/xsl/current/README # +FAKETIME=$(RELEASE_DATE) 00:00:00 + RELNOTES_INC=\ release-notes-1.8.7.inc \ release-notes-1.8.6.inc \ @@ -245,7 +247,7 @@ PUBLISH_DOC=$(PUBLISH_HTML) $(HTML_REVHISTORY) $(PDF) $(IMAGES) $(STYLESHEET) DOC=$(HTML) $(HTML_REVHISTORY) $(PDF) $(IMAGES) $(STYLESHEET) -.SUFFIXES: .tmpl .xsl .inc .txt .raw .pdf .html +SUFFIXES = .tmpl .xsl .inc .txt .raw .pdf .html .txt.raw: sed -e 's/^[ ]*//' -e 's/^\\//' $*.txt > $@ @@ -254,12 +256,11 @@ DOC=$(HTML) $(HTML_REVHISTORY) $(PDF) $(IMAGES) $(STYLESHEET) sed -e 's/^[ ]*//' -e 's/^\\//' $*.inc > $@ .raw.html: - a2x --verbose -a docinfo -f pdf --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(FOP_STYLE) --fop --fop-opts="-c $(FOP_XCONF)" $*.raw - a2x --verbose -a docinfo -f xhtml --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(HTML_STYLE) --stylesheet=$(STYLESHEET) $*.raw + a2x -a docinfo -f xhtml --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(HTML_STYLE) --stylesheet=$(STYLESHEET) $*.raw case $* in release-notes*) ./fix-html $*.html ;; esac .html.pdf: - @echo $@ + TZ=UTC faketime -f '$(FAKETIME) i0' a2x -a docinfo -f pdf --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(FOP_STYLE) --fop --fop-opts="-c $(FOP_XCONF)" $*.raw .tmpl.xsl: xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl $*.tmpl |