rebar/rebar.config.script

18 lines
531 B
Text
Raw Normal View History

2012-06-29 15:29:03 +00:00
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
2013-12-14 13:21:59 +00:00
ExtraDeps = [{retest, ".*", {git, "git://github.com/dizzyd/retest.git"}}],
2012-06-29 15:29:03 +00:00
case os:getenv("REBAR_EXTRA_DEPS") of
false ->
CONFIG;
_ ->
case lists:keysearch(deps, 1, CONFIG) of
{value, {deps, Deps}} ->
NDeps = Deps ++ ExtraDeps,
lists:keyreplace(deps, 1, CONFIG, {deps, NDeps});
false ->
CONFIG ++ [{deps, ExtraDeps}]
end
end.