summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorЮрин Вячеслав <YurinVV@ya.ru>2012-02-03 21:06:18 +0700
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-03-09 19:38:34 +0100
commit0424d75d784144400e662cbeaeb95df2da4ba1e5 (patch)
tree3a67d8ed61268c3428ce43afdf4cfe06a0ce8eaa
parent4e0c9506f5652adfe19d0e8ee7271d022b2f5832 (diff)
Make rebar understand wildcard in subdir
If you have dir with many erlang app, then you can simple write {sub_dirs, ["some_dir/*"]}. Rebar will make operation on subdirs of dir "some_dir".
-rw-r--r--src/rebar_subdirs.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_subdirs.erl b/src/rebar_subdirs.erl
index fb23636..6c33441 100644
--- a/src/rebar_subdirs.erl
+++ b/src/rebar_subdirs.erl
@@ -38,7 +38,8 @@
preprocess(Config, _) ->
%% Get the list of subdirs specified in the config (if any).
Cwd = rebar_utils:get_cwd(),
- Subdirs0 = rebar_config:get_local(Config, sub_dirs, []),
+ ListSubdirs = rebar_config:get_local(Config, sub_dirs, []),
+ Subdirs0 = lists:flatmap(fun filelib:wildcard/1, ListSubdirs),
case {rebar_core:is_skip_dir(Cwd), Subdirs0} of
{true, []} ->
{ok, []};