mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 19:19:53 +00:00
21 lines
703 B
Text
21 lines
703 B
Text
|
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
||
|
%% ex: ts=4 sw=4 ft=erlang et
|
||
|
|
||
|
%% TODO: Change temporary retest fork back to dizzyd/retest after merge
|
||
|
%% ExtraDeps = [{retest, ".*", {git, "git://github.com/dizzyd/retest.git"}}],
|
||
|
ExtraDeps = [{retest, ".*",
|
||
|
{git, "git://github.com/tuncer/retest.git", "next"}}],
|
||
|
|
||
|
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.
|