summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon MacMullen <simon@lshift.net>2010-03-02 13:18:49 +0000
committerSimon MacMullen <simon@lshift.net>2010-03-02 13:18:49 +0000
commit17f4674365c8840d1b811a45acec47101910dade (patch)
treef7b7b1f54423e357479b1df3c8d30fb4a4a8e0bc /Makefile
parent3a7576d1d7e74504ef297bc9e308e7e3752f8b94 (diff)
downloadrabbitmq-server-git-17f4674365c8840d1b811a45acec47101910dade.tar.gz
Move the prefix / suffix to the XSL file, cleaner and works with echo from lenny.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 07509a5634..1264f904b2 100644
--- a/Makefile
+++ b/Makefile
@@ -203,9 +203,9 @@ distclean: clean
rm -f $<.tmp
%.usage.erl: %.1.xml docs/usage.xsl
- echo -n "%% Generated, do not edit!\n-module(`basename $< .1.xml | tr -d -`_usage).\n-export([usage/0]).\nusage() -> io:format(\"" > docs/`basename $< .1.xml`.usage.erl
- xsltproc docs/usage.xsl $< | sed -e s/\\\"/\\\\\\\"/g | fmt -s >> docs/`basename $< .1.xml`.usage.erl
- echo '"), halt(1).' >> docs/`basename $< .1.xml`.usage.erl
+ xsltproc --stringparam modulename "`basename $< .1.xml | tr -d -`_usage" \
+ docs/usage.xsl $< | sed -e s/\\\"/\\\\\\\"/g | sed -e s/%QUOTE%/\\\"/g | \
+ fmt -s > docs/`basename $< .1.xml`.usage.erl
# This evil with grep and sed is due to the remarkable ugliness otherwise
# experienced trying to get XSLT to work with an input doc where all nodes are