Browse files

Use filename:join instead of ?FMT

  • Loading branch information...
1 parent f4070bf commit 926baa1c31940ba49bd8a798fe4a4efecb636420 @tuncer tuncer committed Jan 28, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/rebar_port_compiler.erl
View
6 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}];

0 comments on commit 926baa1

Please sign in to comment.