Current section

Files

Jump to
erlogstash rebar.config.script
Raw

rebar.config.script

case erlang:function_exported(rebar3, main, 1) of
true -> CONFIG;
false ->
case lists:keyfind(deps, 1, CONFIG) of
{_, Deps} ->
lists:keyreplace(deps, 1, CONFIG,
{deps, lists:map(fun({otpbp, "~> " ++ V}) ->
{otpbp,
{git, "https://github.com/Ledest/otpbp.git", {branch, "master"}}};
({emsgpack, "~> " ++ V}) ->
{emsgpack,
{git, "https://github.com/Ledest/emsgpack", {branch, "master"}}};
(D) -> D
end, Deps)});
_ -> CONFIG
end
end.