From 0424d75d784144400e662cbeaeb95df2da4ba1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=BD=20=D0=92=D1=8F=D1=87=D0=B5=D1=81?= =?UTF-8?q?=D0=BB=D0=B0=D0=B2?= Date: Fri, 3 Feb 2012 21:06:18 +0700 Subject: [PATCH] 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". --- src/rebar_subdirs.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, []};