Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2015-08-14 13:12:55 +0300
committerChristophe Romain <christophe.romain@process-one.net>2015-09-17 18:59:13 +0300
commita1a7beb24da27b9faaee97f17dfda202f11eb539 (patch)
tree97fe9695e05c34e0a0b58971524ca25c3eb9f7c2 /rebar.config.script
parent5d11a19087298d83bd7bca05da2ed188159eac52 (diff)
Make sure that lager is first on our deps list
Diffstat (limited to 'rebar.config.script')
-rw-r--r--rebar.config.script8
1 files changed, 7 insertions, 1 deletions
diff --git a/rebar.config.script b/rebar.config.script
index 43bb8f0ef..7ec52722b 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -167,6 +167,12 @@ TestConfig = case file:read_file_info(TestConfigFile) of
""
end,
+AllDeps0 = Deps ++ CfgDeps,
+AllDeps = case lists:keytake(lager, 1, AllDeps0) of
+ {value, Tuple, Rest} -> [Tuple|Rest];
+ false -> AllDeps0
+ end,
+
Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
[{src_dirs, [asn1, src | SrcDirs]}]},
{sub_dirs, ["rel"]},
@@ -180,7 +186,7 @@ Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
[{"(XC - UC) || (XU - X - B - "
++ string:join(CfgXrefs, " - ") ++ ")", []}]},
{post_hooks, PostHooks ++ CfgPostHooks},
- {deps, Deps ++ CfgDeps}] ++ ElixirConfig,
+ {deps, AllDeps}] ++ ElixirConfig,
%%io:format("ejabberd configuration:~n ~p~n", [Config]),
Config.