diff options
author | Keith Packard <keithp@keithp.com> | 2018-10-06 17:17:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-06 17:18:14 -0700 |
commit | 9e29ac8ed9a48fc4ac8e769eeb131dd7c58fedc4 (patch) | |
tree | 91ddebfe1a1928ff881249a7ac92be3d1ebe35a5 | |
parent | cabfcb078950238cdaee4e6ec4702195feaabc7b (diff) |
doc: Make use of 'faketime' configurable with configure.ac. Default to 'no'
This ensures that older a2x versions don't simply wedge while building
the docs.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | doc/Makefile.am | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 0a5a76ec..1705745d 100644 --- a/configure.ac +++ b/configure.ac @@ -184,6 +184,12 @@ else HAVE_GOOGLE_KEY="no" fi +AC_ARG_ENABLE(faketime, AS_HELP_STRING([--enable-faketime], + [Use faketime program to ensure pdf files are reproducible (default=no)]), + [FAKETIME=$enableval], [FAKETIME=no]) + +AM_CONDITIONAL(FAKETIME, [test x$FAKETIME = xyes]) + AC_SUBST(GOOGLEKEY) AC_PROG_CC diff --git a/doc/Makefile.am b/doc/Makefile.am index 5f2ab026..450053f1 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,7 +2,9 @@ # http://docbook.sourceforge.net/release/xsl/current/README # -FAKETIME=$(RELEASE_DATE) 00:00:00 +if FAKETIME +FAKETIME=TZ=UTC faketime -f '$(RELEASE_DATE) 00:00:00 i0' +endif RELNOTES_INC=\ release-notes-1.8.7.inc \ @@ -264,9 +266,10 @@ SUFFIXES = .dot .svg .tmpl .xsl .inc .txt .raw .pdf .html .raw.html: 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 + $(FAKETIME) a2x -a docinfo -f pdf --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(FOP_STYLE) --fop --fop-opts="-c $(FOP_XCONF)" $*.raw .html.pdf: - 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 + echo $@ .tmpl.xsl: xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl $*.tmpl |