summaryrefslogtreecommitdiff
path: root/Makefile
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
commit1b2c564d4a086277ee5811eae7d09bab09525eee (patch)
tree3f6a49878f0fa2942be18b6f51c4e88b76632733 /Makefile
parent2fd8b26bcfd5e16d8ffbae8be53f5e6840cb86c9 (diff)
downloadrabbitmq-server-1b2c564d4a086277ee5811eae7d09bab09525eee.tar.gz
ensure that srcdist inserts the correct version into the bundled makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9a6ad7a6..79d62b51 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/*