mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Use override syntax that rebar3 accepts
This commit is contained in:
parent
d3aab2ea18
commit
99f8e58eaf
@ -2,11 +2,11 @@
|
||||
-export([preprocess/2]).
|
||||
|
||||
override_opts(override, Config, Opts) ->
|
||||
lists:foldl(fun({Opt, Value}, Conf) ->
|
||||
lists:foldl(fun({Opt, [Value]}, Conf) ->
|
||||
rebar_config:set(Conf, Opt, Value)
|
||||
end, Config, Opts);
|
||||
override_opts(add, Config, Opts) ->
|
||||
lists:foldl(fun({Opt, Value}, Conf) ->
|
||||
lists:foldl(fun({Opt, [Value]}, Conf) ->
|
||||
V = rebar_config:get_local(Conf, Opt, []),
|
||||
rebar_config:set(Conf, Opt, [Value | V])
|
||||
end, Config, Opts).
|
||||
|
@ -298,8 +298,8 @@ GenDepsConfigure =
|
||||
fun(Hooks) ->
|
||||
lists:map(fun({Pkg, Flags}) ->
|
||||
DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"),
|
||||
{add, list_to_atom(Pkg), [{pre_hooks, {'compile',
|
||||
lists:flatten(GenDepConfigureLine(DepPath, Flags))}}]}
|
||||
{add, list_to_atom(Pkg), [{pre_hooks, [{'compile',
|
||||
lists:flatten(GenDepConfigureLine(DepPath, Flags))}]}]}
|
||||
end, Hooks)
|
||||
end,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user