Browse Source

rebar3 config and backwards compatibility script

pull/404/head
Mark Allen 8 years ago
parent
commit
1bf7271311
2 changed files with 11 additions and 2 deletions
  1. +1
    -2
      rebar.config
  2. +10
    -0
      rebar.config.script

+ 1
- 2
rebar.config View File

@ -48,7 +48,7 @@
]}.
{deps, [
{goldrush, ".*", {git, "https://github.com/DeadZen/goldrush.git", {tag, "0.1.9"}}}
{goldrush, "0.1.9"}
]}.
{xref_checks, []}.
@ -56,4 +56,3 @@
{cover_enabled, true}.
{edoc_opts, [{stylesheet_file, "./priv/edoc.css"}]}.

+ 10
- 0
rebar.config.script View File

@ -0,0 +1,10 @@
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, [
{goldrush, ".*", {git, "https://github.com/DeadZen/goldrush.git", {tag, "0.1.9"}}}
]} | lists:keydelete(deps, 1, CONFIG)]
end.

Loading…
Cancel
Save