mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 11:09:55 +00:00
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:
parent
47dba1bbc3
commit
b44b4f4199
1 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,8 @@
|
||||||
%% -------------------------------------------------------------------
|
%% -------------------------------------------------------------------
|
||||||
-module(rebar_app_utils).
|
-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,
|
is_app_src/1,
|
||||||
app_src_to_app/1,
|
app_src_to_app/1,
|
||||||
app_name/2,
|
app_name/2,
|
||||||
|
@ -47,7 +48,7 @@ is_app_dir() ->
|
||||||
|
|
||||||
is_app_dir(Dir) ->
|
is_app_dir(Dir) ->
|
||||||
SrcDir = filename:join([Dir, "src"]),
|
SrcDir = filename:join([Dir, "src"]),
|
||||||
AppSrc = filename:join([SrcDir, "*.app.src"]),
|
AppSrc = filename:join([SrcDir, "*.app.{src,src.script}"]),
|
||||||
case filelib:wildcard(AppSrc) of
|
case filelib:wildcard(AppSrc) of
|
||||||
[AppSrcFile] ->
|
[AppSrcFile] ->
|
||||||
{true, AppSrcFile};
|
{true, AppSrcFile};
|
||||||
|
|
Loading…
Reference in a new issue