mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Correctly use release_handler:create_RELEASES
This commit is contained in:
parent
73e9413a01
commit
29492dd0e8
1 changed files with 15 additions and 3 deletions
|
@ -344,10 +344,22 @@ apply_file_info(InFile, OutFile) ->
|
|||
|
||||
create_RELEASES(TargetDir, RelName, RelVsn) ->
|
||||
ReleasesDir = filename:join(TargetDir, "releases"),
|
||||
RelFile = filename:join([ReleasesDir, RelVsn, RelName ++ ".rel"]),
|
||||
Apps = rebar_rel_utils:get_rel_apps(RelFile),
|
||||
TargetLib = filename:join(TargetDir,"lib"),
|
||||
|
||||
AppDirs =
|
||||
[ {App, Vsn, TargetLib}
|
||||
|| {App, Vsn} <- Apps,
|
||||
filelib:is_dir(
|
||||
filename:join(TargetLib,
|
||||
lists:concat([App, "-", Vsn]))) ],
|
||||
|
||||
case release_handler:create_RELEASES(
|
||||
".", ReleasesDir,
|
||||
filename:join([ReleasesDir, RelVsn, RelName ++ ".rel"]),
|
||||
filename:join(TargetDir, "lib")) of
|
||||
code:root_dir(),
|
||||
ReleasesDir,
|
||||
RelFile,
|
||||
AppDirs) of
|
||||
ok ->
|
||||
ok;
|
||||
{error, Reason} ->
|
||||
|
|
Loading…
Reference in a new issue