aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-06-29 18:29:42 +0200
committerLoïc Hoguin <[email protected]>2019-06-29 18:29:42 +0200
commitfcb8a57bca12b43a25f113678fe81ad79a8d6d1a (patch)
treeb2d41ec6fdccc61efc4154366453b0fec95635cd /core
parent2b7e434f7327b7fdda72950e27f8fc0a27de2547 (diff)
downloaderlang.mk-fcb8a57bca12b43a25f113678fe81ad79a8d6d1a.tar.gz
erlang.mk-fcb8a57bca12b43a25f113678fe81ad79a8d6d1a.tar.bz2
erlang.mk-fcb8a57bca12b43a25f113678fe81ad79a8d6d1a.zip
Filter out master when getting the LATEST_ERLANG_OTP
Diffstat (limited to 'core')
-rw-r--r--core/kerl.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/kerl.mk b/core/kerl.mk
index c8096dd..eec0712 100644
--- a/core/kerl.mk
+++ b/core/kerl.mk
@@ -52,7 +52,9 @@ distclean-kerl:
# Allow users to select which version of Erlang/OTP to use for a project.
ifneq ($(strip $(LATEST_ERLANG_OTP)),)
-ERLANG_OTP := $(notdir $(lastword $(sort $(filter-out $(KERL_INSTALL_DIR)/OTP_R%,\
+# In some environments it is necessary to filter out master.
+ERLANG_OTP := $(notdir $(lastword $(sort\
+ $(filter-out $(KERL_INSTALL_DIR)/master $(KERL_INSTALL_DIR)/OTP_R%,\
$(filter-out %-rc1 %-rc2 %-rc3,$(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))))
endif