summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Bridgen <mikeb@lshift.net>2009-03-30 11:10:35 +0100
committerMichael Bridgen <mikeb@lshift.net>2009-03-30 11:10:35 +0100
commit494e57befe6dce628d0a8275beb1adc9d9e2415a (patch)
tree68972334754771978658dbff2dce62b77c5a9e96 /Makefile
parent7b21e68bf1e8d7b79c87463501ec49790ff6cd23 (diff)
downloadrabbitmq-server-git-494e57befe6dce628d0a8275beb1adc9d9e2415a.tar.gz
Use a backup extension and remove the file afterward
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e0f01f4c60..cb3f5999da 100644
--- a/Makefile
+++ b/Makefile
@@ -123,7 +123,7 @@ srcdist: distclean
cp README.in $(TARGET_SRC_DIR)/README
elinks -dump -no-references -no-numbering $(WEB_URL)build-server.html \
>> $(TARGET_SRC_DIR)/README
- sed -i 's/%%VERSION%%/$(VERSION)/' $(TARGET_SRC_DIR)/ebin/rabbit.app
+ sed -i.save 's/%%VERSION%%/$(VERSION)/' $(TARGET_SRC_DIR)/ebin/rabbit.app && rm -f $(TARGET_SRC_DIR)/ebin/rabbit.app.save
cp -r $(AMQP_CODEGEN_DIR)/* $(TARGET_SRC_DIR)/codegen/
cp codegen.py Makefile $(TARGET_SRC_DIR)