瀏覽代碼

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 年之前
committed by 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, []};

Loading…
取消
儲存