Skip to content
Permalink
Browse files
Add rebar.config.script for supporting rebar2
  • Loading branch information
sile committed Jan 18, 2018
1 parent 24f0a1a commit 5d14a62442fa7bd2e37611a75c1abb8b6f360ca1
Showing 1 changed file with 14 additions and 0 deletions.
@@ -0,0 +1,14 @@
%% -*- erlang -*-
IsRebar3 = erlang:function_exported(rebar3, main, 1),

Rebar2Deps =
[
{local, ".*", {git, "https://github.com/sile/local.git", {tag, "0.2.0"}}},
{passage, ".*", {git, "https://github.com/sile/passage.git", {tag, "0.2.4"}}},
{thrift_protocol, ".*", {git, "https://github.com/sile/thrift_protocol.git", {tag, "0.1.2"}}}
],

case IsRebar3 of
true -> CONFIG;
false -> lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps})
end.

0 comments on commit 5d14a62

Please sign in to comment.