aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_cmd_args.erl
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2013-11-18 10:28:39 +0100
committerJosé Valim <[email protected]>2013-11-18 10:42:15 +0100
commit73b24fd1a0604e413fece30181cc632c1081aa29 (patch)
tree06371825a8876bc8d19e10755241510b341bbb02 /src/rlx_cmd_args.erl
parent10620765c5028c24d57caba20b8e86b98351e3a5 (diff)
downloadrelx-73b24fd1a0604e413fece30181cc632c1081aa29.tar.gz
relx-73b24fd1a0604e413fece30181cc632c1081aa29.tar.bz2
relx-73b24fd1a0604e413fece30181cc632c1081aa29.zip
Support wildcards in lib dirs
Wildcards are supported in both lib_dirs in config files as well via the -l command line option.
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r--src/rlx_cmd_args.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl
index f592474..d2402ce 100644
--- a/src/rlx_cmd_args.erl
+++ b/src/rlx_cmd_args.erl
@@ -223,11 +223,12 @@ create_output_dir(Opts, Acc) ->
create_lib_dirs(Opts, Acc) ->
Dirs = proplists:get_all_values(lib_dir, Opts) ++
proplists:get_value(lib_dirs, Opts, []),
- case check_lib_dirs(Dirs) of
+ ExpDirs = rlx_util:wildcard_paths(Dirs),
+ case check_lib_dirs(ExpDirs) of
Error = {error, _} ->
Error;
ok ->
- create_root_dir(Opts, [{lib_dirs, [filename:absname(Dir) || Dir <- Dirs]} | Acc])
+ create_root_dir(Opts, [{lib_dirs, ExpDirs} | Acc])
end.
-spec create_root_dir([getopt:option()], rlx_state:cmd_args()) ->