diff options
author | joewilliams <williams.joe@gmail.com> | 2012-08-30 12:05:58 -0700 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-09-04 18:43:22 +0200 |
commit | 29492dd0e8d00c3a43b3591ede5d99abb6a88cd3 (patch) | |
tree | 0b06a08fd88536d2d4758f41558d98c72e5a4189 /src | |
parent | 73e9413a015ba3077c1d16355d90c078ade29e16 (diff) |
Correctly use release_handler:create_RELEASES
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_reltool.erl | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl index 4f10121..6524e68 100644 --- a/src/rebar_reltool.erl +++ b/src/rebar_reltool.erl @@ -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} -> |