Skip to content

Commit 4ec03f3

Browse files
author
Andrei Zavada
committed
determine otp version from erlang:system_info(otp_release)
works better for non-standard installations of otp
1 parent 5ddfd28 commit 4ec03f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PKG_REVISION ?= $(shell git describe --tags 2>/dev/null)
44
PKG_BUILD = 1
55
BASE_DIR = $(shell pwd)
66
ERLANG_BIN = $(shell dirname $(shell which erl 2>/dev/null) 2>/dev/null)
7-
OTP_VER = $(shell echo $(ERLANG_BIN) | rev | cut -d "/" -f 2 | rev)
7+
OTP_VER = $(shell erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell)
88
REBAR ?= $(BASE_DIR)/rebar3
99
OVERLAY_VARS ?=
1010
TEST_IGNORE ?= lager riak basho_bench

0 commit comments

Comments
 (0)