aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_cmd_args.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2013-10-15 09:49:36 -0700
committerJordan Wilberding <[email protected]>2013-10-15 09:49:36 -0700
commit73502b0c33811455e0bbabc2692de191ddc5fc65 (patch)
tree62ef34c600455bde3d02f51c81fe962fb71171dd /src/rlx_cmd_args.erl
parent9e390a7022b1f5296d4fdb7618d13d843ed26bde (diff)
parent750c3df605de8e7dc0f4d809e2fe7aa09827eee1 (diff)
downloadrelx-73502b0c33811455e0bbabc2692de191ddc5fc65.tar.gz
relx-73502b0c33811455e0bbabc2692de191ddc5fc65.tar.bz2
relx-73502b0c33811455e0bbabc2692de191ddc5fc65.zip
Merge pull request #68 from tsloughter/master
add optoin to use custom system_libs dir. This closes #64
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r--src/rlx_cmd_args.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl
index ea32fd4..d6bf0bb 100644
--- a/src/rlx_cmd_args.erl
+++ b/src/rlx_cmd_args.erl
@@ -252,7 +252,13 @@ create_disable_default_libs(Opts, Acc) ->
{ok, rlx_state:cmd_args()} | relx:error().
create_overlay_vars(Opts, Acc) ->
OverlayVars = proplists:get_all_values(overlay_vars, Opts),
- create_upfrom(Opts, [{overlay_vars, OverlayVars} | Acc]).
+ create_system_libs(Opts, [{overlay_vars, OverlayVars} | Acc]).
+
+-spec create_system_libs([getopt:option()], rlx_state:cmd_args()) ->
+ {ok, rlx_state:cmd_args()} | relx:error().
+create_system_libs(Opts, Acc) ->
+ SystemLibs = proplists:get_value(system_libs, Opts, undefined),
+ create_upfrom(Opts, [{system_libs, SystemLibs} | Acc]).
-spec create_upfrom([getopt:option()], rlx_state:cmd_args()) ->
{ok, rlx_state:cmd_args()} | relx:error().