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 | a3b1d5bd212786c38c9a957c071d7e7eb23f686b (patch) | |
| tree | a9c0e21b682c1b8223290ce47a731485f4008f91 | |
| parent | 1aadea65eac6ede7a43cb55540bca8060f4b6f9e (diff) | |
| download | rabbitmq-server-git-a3b1d5bd212786c38c9a957c071d7e7eb23f686b.tar.gz | |
Portability: use temporary files instead of "sed -i".
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) |
