Fix detection of .app.src.script (Reported-by: Vlad Dumitrescu)

rebar_app_utils:is_app_dir/1 failed to search for .app.src.script when
looking for an app file in src/.

While at it, fix inconsistent module export list.
This commit is contained in:
Tuncer Ayaz 2014-08-13 16:34:18 +02:00 committed by Vlad Dumitrescu
parent 47dba1bbc3
commit b44b4f4199

View file

@ -26,7 +26,8 @@
%% -------------------------------------------------------------------
-module(rebar_app_utils).
-export([is_app_dir/0, is_app_dir/1,
-export([is_app_dir/0,
is_app_dir/1,
is_app_src/1,
app_src_to_app/1,
app_name/2,
@ -47,7 +48,7 @@ is_app_dir() ->
is_app_dir(Dir) ->
SrcDir = filename:join([Dir, "src"]),
AppSrc = filename:join([SrcDir, "*.app.src"]),
AppSrc = filename:join([SrcDir, "*.app.{src,src.script}"]),
case filelib:wildcard(AppSrc) of
[AppSrcFile] ->
{true, AppSrcFile};