summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2010-04-01 10:41:06 -0400
committerTony Garnock-Jones <tonyg@lshift.net>2010-04-01 10:41:06 -0400
commitaab66b4d578ba724018f2de2f51887eae5787bdf (patch)
tree3af95fdeeeeb8a4bc5281e2f4f593ffee39a5c99
parenta7017ec1e34ac944b6868fc8db5c62766c7c22ef (diff)
downloadrabbitmq-server-bug22582.tar.gz
Use atomic renamebug22582
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e32b9b06..6cb086ab 100644
--- a/Makefile
+++ b/Makefile
@@ -214,8 +214,8 @@ $(SOURCE_DIR)/%_usage.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
+ 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.