aboutsummaryrefslogtreecommitdiffstats
path: root/core/kerl.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-08-01 09:03:20 +0200
committerLoïc Hoguin <[email protected]>2018-08-01 09:03:20 +0200
commit6c8664cc978472481dc101279961529ae39dd0d3 (patch)
treee7575390ab0be22e88b8047fb3d0a54e6fe13ff9 /core/kerl.mk
parentd13654730759161dfa532a2a9e509040117fb0fc (diff)
downloaderlang.mk-6c8664cc978472481dc101279961529ae39dd0d3.tar.gz
erlang.mk-6c8664cc978472481dc101279961529ae39dd0d3.tar.bz2
erlang.mk-6c8664cc978472481dc101279961529ae39dd0d3.zip
Filter out the old OTP versions from LATEST_ERLANG_OTP
Diffstat (limited to 'core/kerl.mk')
-rw-r--r--core/kerl.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/kerl.mk b/core/kerl.mk
index a1aa824..029872c 100644
--- a/core/kerl.mk
+++ b/core/kerl.mk
@@ -49,8 +49,8 @@ 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 %-rc1 %-rc2 %-rc3,\
- $(wildcard $(KERL_INSTALL_DIR)/*[^-native])))))
+ERLANG_OTP := $(notdir $(lastword $(sort $(filter-out $(KERL_INSTALL_DIR)/OTP_R%,\
+ $(filter-out %-rc1 %-rc2 %-rc3,$(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))))
endif
ERLANG_OTP ?=