From 6ca35698eb4e2b361e598b88b225e2d4bf8e8dfd Mon Sep 17 00:00:00 2001 From: David Wragg Date: Thu, 1 Jul 2010 13:29:10 +0100 Subject: Omit the --stringparam option for old versions of xmlto Version 0.0.18, as included in RHEL5, doesn't support this option. It was introduced in 0.0.19. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5935f034..05914301 100644 --- a/Makefile +++ b/Makefile @@ -226,9 +226,10 @@ distclean: clean # xmlto can not read from standard input, so we mess with a tmp file. %.gz: %.xml $(DOCS_DIR)/examples-to-end.xsl - xsltproc $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \ - xmlto man -o $(DOCS_DIR) --stringparam man.indent.verbatims=0 $<.tmp && \ - gzip -f $(DOCS_DIR)/`basename $< .xml` + xmlto --version | grep -E '^xmlto version 0\.0\.([0-9]|1[1-8])$$' >/dev/null || opt='--stringparam man.indent.verbatims=0' ; \ + xsltproc $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \ + xmlto man -o $(DOCS_DIR) $$opt $<.tmp && \ + gzip -f $(DOCS_DIR)/`basename $< .xml` rm -f $<.tmp # Use tmp files rather than a pipeline so that we get meaningful errors -- cgit v1.2.1