Merge pull request #99 from ericmj/patch-1
Support non rebar tools evaluating script
This commit is contained in:
commit
8a325c0291
1 changed files with 8 additions and 5 deletions
|
@ -1,8 +1,11 @@
|
||||||
{ok, VSN} = application:get_key(rebar, vsn),
|
IsRebar3 = case application:get_key(rebar, vsn) of
|
||||||
[VSN1 | _] = string:tokens(VSN, "-"),
|
{ok, VSN} ->
|
||||||
[Maj, Min, Patch] = string:tokens(VSN1, "."),
|
[VSN1 | _] = string:tokens(VSN, "-"),
|
||||||
IsRebar3 = (list_to_integer(Maj) >= 3),
|
[Maj, Min, Patch] = string:tokens(VSN1, "."),
|
||||||
|
(list_to_integer(Maj) >= 3);
|
||||||
|
undefined ->
|
||||||
|
false
|
||||||
|
end,
|
||||||
|
|
||||||
Rebar2Deps = [
|
Rebar2Deps = [
|
||||||
{cf, ".*", {git, "https://github.com/project-fifo/cf", {tag, "0.2.0"}}}
|
{cf, ".*", {git, "https://github.com/project-fifo/cf", {tag, "0.2.0"}}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue