浏览代码

rebar3 config and backwards compatibility script

pull/404/head
Mark Allen 8 年前
父节点
当前提交
1bf7271311
共有 2 个文件被更改,包括 11 次插入2 次删除
  1. +1
    -2
      rebar.config
  2. +10
    -0
      rebar.config.script

+ 1
- 2
rebar.config 查看文件

@ -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 查看文件

@ -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.

正在加载...
取消
保存