summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-07-01 13:29:10 +0100
committerDavid Wragg <david@rabbitmq.com>2010-07-01 13:29:10 +0100
commit6ca35698eb4e2b361e598b88b225e2d4bf8e8dfd (patch)
treec76f656c8c3524e4581c630898575fed3ce9f552
parent04351ad1f079c9f8cbd707eb7dc72bf7693b5ca1 (diff)
downloadrabbitmq-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--Makefile7
1 files 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