summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Sikora <piotr.sikora@frickle.com>2011-12-21 12:06:36 +0000
committerPiotr Sikora <piotr.sikora@frickle.com>2011-12-21 12:06:36 +0000
commitae29013aec46cda6841f2979001734f99fd60ab3 (patch)
treea9c0e21b682c1b8223290ce47a731485f4008f91
parent632c8519e015cdfe8e70b562ffd32c6b5f87933a (diff)
downloadrabbitmq-server-bug24659.tar.gz
Portability: use temporary files instead of "sed -i".bug24659
The "-i" option isn't available on BSD systems.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d46b4348..c799b7f2 100644
--- a/Makefile
+++ b/Makefile
@@ -246,7 +246,8 @@ stop-cover: all
srcdist: distclean
mkdir -p $(TARGET_SRC_DIR)/codegen
cp -r ebin src include LICENSE LICENSE-MPL-RabbitMQ INSTALL README $(TARGET_SRC_DIR)
- sed -i.save 's/%%VSN%%/$(VERSION)/' $(TARGET_SRC_DIR)/ebin/rabbit_app.in && rm -f $(TARGET_SRC_DIR)/ebin/rabbit_app.in.save
+ sed 's/%%VSN%%/$(VERSION)/' $(TARGET_SRC_DIR)/ebin/rabbit_app.in > $(TARGET_SRC_DIR)/ebin/rabbit_app.in.tmp && \
+ mv $(TARGET_SRC_DIR)/ebin/rabbit_app.in.tmp $(TARGET_SRC_DIR)/ebin/rabbit_app.in
cp -r $(AMQP_CODEGEN_DIR)/* $(TARGET_SRC_DIR)/codegen/
cp codegen.py Makefile generate_app generate_deps calculate-relative $(TARGET_SRC_DIR)