summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-04-06 14:43:48 +0100
committerMatthew Sackman <matthew@lshift.net>2010-04-06 14:43:48 +0100
commit81fa43bd8070a377c5bb0efce9f8bc63864f6b8e (patch)
treeebeb3e7a5cab6ea4a6cda91b77ec997e66d32c1c /Makefile
parentf318a056c0c6999fe5d9d853440f4a49e92530b3 (diff)
parent6fd8ef5561465d2714bd54de612e2799850ecbe0 (diff)
downloadrabbitmq-server-git-81fa43bd8070a377c5bb0efce9f8bc63864f6b8e.tar.gz
Merging bug 22582 into default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4a90ef9ff2..6cb086ab94 100644
--- a/Makefile
+++ b/Makefile
@@ -211,11 +211,11 @@ distclean: clean
# generated but empty if we fail
$(SOURCE_DIR)/%_usage.erl:
xsltproc --stringparam modulename "`basename $@ .erl`" \
- $(DOCS_DIR)/usage.xsl $< > $@.tmp && \
- sed -e s/\\\"/\\\\\\\"/g -e s/%QUOTE%/\\\"/g $@.tmp > $@.tmp2 && \
- fold -s $@.tmp2 > $@.tmp3 && \
- cp $@.tmp3 $@ && \
- rm $@.tmp $@.tmp2 $@.tmp3
+ $(DOCS_DIR)/usage.xsl $< > $@.tmp
+ sed -e 's/"/\\"/g' -e 's/%QUOTE%/"/g' $@.tmp > $@.tmp2
+ fold -s $@.tmp2 > $@.tmp3
+ mv $@.tmp3 $@
+ rm $@.tmp $@.tmp2
# We rename the file before xmlto sees it since xmlto will use the name of
# the file to make internal links.