summaryrefslogtreecommitdiff
path: root/packaging/standalone
diff options
context:
space:
mode:
authorAlvaro Videla <videlalvaro@gmail.com>2015-04-14 23:19:58 +0200
committerAlvaro Videla <videlalvaro@gmail.com>2015-04-14 23:19:58 +0200
commite49da380acc916d33c25e9f3a8037de2e4d4c5b5 (patch)
tree21b1e66b818f469cc2f9d6364821c1e083396bb6 /packaging/standalone
parent484157671cc7826b354dccb925573195870509ad (diff)
downloadrabbitmq-server-git-e49da380acc916d33c25e9f3a8037de2e4d4c5b5.tar.gz
adds OTP_VERSION to standalone mac
Fixes rabbitmq/rabbitmq-server#106
Diffstat (limited to 'packaging/standalone')
-rw-r--r--packaging/standalone/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/standalone/Makefile b/packaging/standalone/Makefile
index dbb487ab19..7a4135f964 100644
--- a/packaging/standalone/Makefile
+++ b/packaging/standalone/Makefile
@@ -6,6 +6,7 @@ RLS_DIR=$(TARGET_DIR)/release/$(TARGET_DIR)
ERTS_VSN=$(shell erl -noshell -eval 'io:format("~s", [erlang:system_info(version)]), halt().')
ERTS_ROOT_DIR=$(shell erl -noshell -eval 'io:format("~s", [code:root_dir()]), halt().')
+OTP_RELEASE=$(shell erl -noshell -eval 'io:format("~s", [erlang:system_info(otp_release)]), halt().')
# used to generate the erlang release
RABBITMQ_HOME=$(TARGET_DIR)
@@ -48,6 +49,10 @@ dist:
cp $(ERTS_ROOT_DIR)/bin/start_clean.boot $(RLS_DIR)/releases/$(VERSION)
cp $(ERTS_ROOT_DIR)/bin/start_sasl.boot $(RLS_DIR)/releases/$(VERSION)
+# add OTP_VERSION file
+ mkdir -p $(RLS_DIR)/releases/$(OTP_RELEASE)
+ cp $(ERTS_ROOT_DIR)/releases/$(OTP_RELEASE)/OTP_VERSION $(RLS_DIR)/releases/$(OTP_RELEASE)/OTP_VERSION
+
# move rabbitmq files to top level folder
mv $(RLS_DIR)/lib/rabbit-$(VERSION)/* $(RLS_DIR)