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 | 1e2f98da0e89578725230a6b9ebf3ea30bc3c333 (patch) | |
| tree | c76f656c8c3524e4581c630898575fed3ce9f552 /Makefile | |
| parent | d6ac0a2cf366f8be2c52e60de9632bcc4dcdbb68 (diff) | |
| download | rabbitmq-server-git-1e2f98da0e89578725230a6b9ebf3ea30bc3c333.tar.gz | |
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.
Diffstat (limited to 'Makefile')
| -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 |
