summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2013-07-09 12:02:25 +0100
committerTim Watson <tim@rabbitmq.com>2013-07-09 12:02:25 +0100
commit4ee05e6853631411bd4a87ba7fdd55292bb9a77c (patch)
tree3f6a49878f0fa2942be18b6f51c4e88b76632733
parent055b2a496e32f959fc8ed06fa0f8f60f6dcfed3f (diff)
downloadrabbitmq-server-git-4ee05e6853631411bd4a87ba7fdd55292bb9a77c.tar.gz
ensure that srcdist inserts the correct version into the bundled makefile
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9a6ad7a6f0..79d62b5149 100644
--- a/Makefile
+++ b/Makefile
@@ -262,6 +262,8 @@ srcdist: distclean
cp -r $(AMQP_CODEGEN_DIR)/* $(TARGET_SRC_DIR)/codegen/
cp codegen.py Makefile generate_app generate_deps calculate-relative $(TARGET_SRC_DIR)
+ sed -i -e "s:^VERSION?=0.0.0:VERSION=${VERSION}:" $(TARGET_SRC_DIR)/Makefile
+
cp -r scripts $(TARGET_SRC_DIR)
cp -r $(DOCS_DIR) $(TARGET_SRC_DIR)
chmod 0755 $(TARGET_SRC_DIR)/scripts/*