Merge pull request #102 from omarkj/omarkj-compile-on-rebar3

Fix `rebar.config.script` to work with latest `rebar3`.
This commit is contained in:
Tristan Sloughter 2016-03-10 13:21:43 -06:00
commit 874f2dc821

View file

@ -1,8 +1,7 @@
IsRebar3 = case application:get_key(rebar, vsn) of IsRebar3 = case application:get_key(rebar, vsn) of
{ok, VSN} -> {ok, Vsn} ->
[VSN1 | _] = string:tokens(VSN, "-"), [MajorVersion|_] = string:tokens(Vsn, "."),
[Maj, Min, Patch] = string:tokens(VSN1, "."), (list_to_integer(MajorVersion) >= 3);
(list_to_integer(Maj) >= 3);
undefined -> undefined ->
false false
end, end,