%% -*- mode: erlang -*-
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 sts ft=erlang et

case erlang:function_exported(rebar3, main, 1) of
    true -> % rebar3
        CONFIG;
    false -> % rebar 2.x or older
        %% Rebuild deps, possibly including those that have been moved to
        %% profiles
        [{deps, [
            {b64fast, {git, "git://github.com/zuckschwerdt/b64fast", {branch, master}}},
            {erlias,  {git, "git://github.com/choptastic/erlias", {branch, master}}},
            {emysql,  {git, "git://github.com/choptastic/Emysql", {branch, master}}},
            {poolboy, {git, "git://github.com/devinus/poolboy", {branch, master}}},
            {epgsql,  {git, "git://github.com/choptastic/epgsql", {branch, master}}},
            {mysql,   {git, "git://github.com/choptastic/mysql-otp", {branch, master}}}
        ]} | lists:keydelete(deps, 1, CONFIG)]
end.
