diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2015-09-25 12:01:10 +0200 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2015-09-25 12:01:10 +0200 |
commit | e29192374c038072cac27b6fc5f801d62171b11d (patch) | |
tree | f7e258104fd20d4c00b733d451a4e82657682b6c /Makefile | |
parent | 66fc18a67dfe1939ab98b4a4058244330070a0bb (diff) | |
download | elixir-e29192374c038072cac27b6fc5f801d62171b11d.tar.gz |
Require Erlang 18.0 forward
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -17,13 +17,11 @@ INSTALL_PROGRAM = $(INSTALL) -m755 #==> Functions -# This check should work for older versions like R16B -# as well as new verions like 17.1 and 18 define CHECK_ERLANG_RELEASE - $(Q) erl -noshell -eval 'io:fwrite("~s", [erlang:system_info(otp_release)])' -s erlang halt | grep -q '^1[789]'; \ - if [ $$? != 0 ]; then \ - echo "At least Erlang 17.0 is required to build Elixir"; \ - exit 1; \ + $(Q) erl -noshell -eval 'io:fwrite("~s", [erlang:system_info(otp_release) >= "18"])' -s erlang halt | grep -q '^true'; \ + if [ $$? != 0 ]; then \ + echo "At least Erlang 18.0 is required to build Elixir"; \ + exit 1; \ fi; endef |