diff options
author | Piotr Sikora <piotr.sikora@frickle.com> | 2011-12-21 12:06:36 +0000 |
---|---|---|
committer | Piotr Sikora <piotr.sikora@frickle.com> | 2011-12-21 12:06:36 +0000 |
commit | ae29013aec46cda6841f2979001734f99fd60ab3 (patch) | |
tree | a9c0e21b682c1b8223290ce47a731485f4008f91 | |
parent | 632c8519e015cdfe8e70b562ffd32c6b5f87933a (diff) | |
download | rabbitmq-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |