summaryrefslogtreecommitdiff
path: root/src/rebar_app_utils.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_app_utils.erl')
-rw-r--r--src/rebar_app_utils.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl
index 3da00be..92c3ff8 100644
--- a/src/rebar_app_utils.erl
+++ b/src/rebar_app_utils.erl
@@ -58,7 +58,14 @@ is_app_src(Filename) ->
Filename =/= filename:rootname(Filename, ".app.src").
app_src_to_app(OutDir, Filename) ->
- AppFile = filename:join([OutDir, "ebin", filename:basename(Filename, ".app.src") ++ ".app"]),
+ AppFile =
+ case lists:suffix(".app.src", Filename) of
+ true ->
+ filename:join([OutDir, "ebin", filename:basename(Filename, ".app.src") ++ ".app"]);
+ false ->
+ filename:join([OutDir, "ebin", filename:basename(Filename,
+ ".app.src.script") ++ ".app"])
+ end,
filelib:ensure_dir(AppFile),
AppFile.