diff options
| author | Alvaro Videla <videlalvaro@gmail.com> | 2015-04-14 23:19:58 +0200 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2015-04-15 07:41:48 +0300 |
| commit | de49752892174188480d9029b24b7307157e4d53 (patch) | |
| tree | 3cfa9e1463acd7d65796661d2983ed2885ff3d7a /packaging | |
| parent | 6a0ef65e490f2a2b0a1ac662bfca9489b320efa1 (diff) | |
| download | rabbitmq-server-git-de49752892174188480d9029b24b7307157e4d53.tar.gz | |
adds OTP_VERSION to standalone mac
Fixes rabbitmq/rabbitmq-server#106
Diffstat (limited to 'packaging')
| -rw-r--r-- | packaging/standalone/Makefile | 5 |
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) |
