diff options
author | David Wragg <david@rabbitmq.com> | 2010-07-01 13:29:10 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-07-01 13:29:10 +0100 |
commit | 6ca35698eb4e2b361e598b88b225e2d4bf8e8dfd (patch) | |
tree | c76f656c8c3524e4581c630898575fed3ce9f552 | |
parent | 04351ad1f079c9f8cbd707eb7dc72bf7693b5ca1 (diff) | |
download | rabbitmq-server-bug22927.tar.gz |
Omit the --stringparam option for old versions of xmltobug22927
Version 0.0.18, as included in RHEL5, doesn't support this option. It
was introduced in 0.0.19.
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |