diff options
| author | Simon MacMullen <simon@lshift.net> | 2010-03-02 13:18:49 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@lshift.net> | 2010-03-02 13:18:49 +0000 |
| commit | 17f4674365c8840d1b811a45acec47101910dade (patch) | |
| tree | f7b7b1f54423e357479b1df3c8d30fb4a4a8e0bc /Makefile | |
| parent | 3a7576d1d7e74504ef297bc9e308e7e3752f8b94 (diff) | |
| download | rabbitmq-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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
