浏览代码

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".
pull/3/head
Юрин Вячеслав 13 年前
提交者 Tuncer Ayaz
父节点
当前提交
0424d75d78
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/rebar_subdirs.erl

+ 2
- 1
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, []};

正在加载...
取消
保存