summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2011-01-28 20:02:51 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-01-28 20:15:22 +0100
commit926baa1c31940ba49bd8a798fe4a4efecb636420 (patch)
tree29f78a3f25c522b68c6910189337eab613b62836
parentf4070bfad7a62c12207ad97935567255a3854593 (diff)
Use filename:join instead of ?FMT
-rw-r--r--src/rebar_port_compiler.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index e684042..32dfa41 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -385,16 +385,18 @@ make_so_specs(Config, AppFile, Bins) ->
undefined ->
%% New form of so_specs is not provided. See if the old form of {so_name} is available
%% instead
+ Dir = "priv",
SoName = case rebar_config:get(Config, so_name, undefined) of
undefined ->
%% Ok, neither old nor new form is available. Use the app name and
%% generate a sensible default.
AppName = rebar_app_utils:app_name(AppFile),
- ?FMT("priv/~s", [lists:concat([AppName, "_drv.so"])]);
+ filename:join(Dir,
+ lists:concat([AppName, "_drv.so"]));
AName ->
%% Old form is available -- use it
- ?FMT("priv/~s", [AName])
+ filename:join(Dir, AName)
end,
[{SoName, Bins}];