mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Use filename:join instead of ?FMT
This commit is contained in:
parent
f4070bfad7
commit
926baa1c31
1 changed files with 4 additions and 2 deletions
|
@ -385,16 +385,18 @@ make_so_specs(Config, AppFile, Bins) ->
|
||||||
undefined ->
|
undefined ->
|
||||||
%% New form of so_specs is not provided. See if the old form of {so_name} is available
|
%% New form of so_specs is not provided. See if the old form of {so_name} is available
|
||||||
%% instead
|
%% instead
|
||||||
|
Dir = "priv",
|
||||||
SoName = case rebar_config:get(Config, so_name, undefined) of
|
SoName = case rebar_config:get(Config, so_name, undefined) of
|
||||||
undefined ->
|
undefined ->
|
||||||
%% Ok, neither old nor new form is available. Use the app name and
|
%% Ok, neither old nor new form is available. Use the app name and
|
||||||
%% generate a sensible default.
|
%% generate a sensible default.
|
||||||
AppName = rebar_app_utils:app_name(AppFile),
|
AppName = rebar_app_utils:app_name(AppFile),
|
||||||
?FMT("priv/~s", [lists:concat([AppName, "_drv.so"])]);
|
filename:join(Dir,
|
||||||
|
lists:concat([AppName, "_drv.so"]));
|
||||||
|
|
||||||
AName ->
|
AName ->
|
||||||
%% Old form is available -- use it
|
%% Old form is available -- use it
|
||||||
?FMT("priv/~s", [AName])
|
filename:join(Dir, AName)
|
||||||
end,
|
end,
|
||||||
[{SoName, Bins}];
|
[{SoName, Bins}];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue