mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Clean up trailing whitespace
This commit is contained in:
parent
4e8dcfbfad
commit
1e9b2b844b
3 changed files with 5 additions and 5 deletions
|
@ -86,9 +86,9 @@
|
||||||
%% ===================================================================
|
%% ===================================================================
|
||||||
|
|
||||||
get_upgraded_apps(OldAppFiles, NewAppFiles) ->
|
get_upgraded_apps(OldAppFiles, NewAppFiles) ->
|
||||||
OldAppsVer = [{rebar_app_utils:app_name(AppFile),
|
OldAppsVer = [{rebar_app_utils:app_name(AppFile),
|
||||||
rebar_app_utils:app_vsn(AppFile)} || AppFile <- OldAppFiles],
|
rebar_app_utils:app_vsn(AppFile)} || AppFile <- OldAppFiles],
|
||||||
NewAppsVer = [{rebar_app_utils:app_name(AppFile),
|
NewAppsVer = [{rebar_app_utils:app_name(AppFile),
|
||||||
rebar_app_utils:app_vsn(AppFile)} || AppFile <- NewAppFiles],
|
rebar_app_utils:app_vsn(AppFile)} || AppFile <- NewAppFiles],
|
||||||
UpgradedApps = lists:subtract(NewAppsVer, OldAppsVer),
|
UpgradedApps = lists:subtract(NewAppsVer, OldAppsVer),
|
||||||
lists:map(
|
lists:map(
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
%% -------------------------------------------------------------------
|
%% -------------------------------------------------------------------
|
||||||
-module(rebar_rel_utils).
|
-module(rebar_rel_utils).
|
||||||
|
|
||||||
-export([is_rel_dir/0,
|
-export([is_rel_dir/0,
|
||||||
is_rel_dir/1,
|
is_rel_dir/1,
|
||||||
get_reltool_release_info/1,
|
get_reltool_release_info/1,
|
||||||
get_rel_release_info/1,
|
get_rel_release_info/1,
|
||||||
|
@ -73,7 +73,7 @@ get_rel_release_info(Name, Path) ->
|
||||||
[RelFile] = filelib:wildcard(filename:join([Path, "releases", "*",
|
[RelFile] = filelib:wildcard(filename:join([Path, "releases", "*",
|
||||||
Name ++ ".rel"])),
|
Name ++ ".rel"])),
|
||||||
[BinDir|_] = re:replace(RelFile, Name ++ "\\.rel", ""),
|
[BinDir|_] = re:replace(RelFile, Name ++ "\\.rel", ""),
|
||||||
get_rel_release_info(filename:join([binary_to_list(BinDir),
|
get_rel_release_info(filename:join([binary_to_list(BinDir),
|
||||||
Name ++ ".rel"])).
|
Name ++ ".rel"])).
|
||||||
|
|
||||||
%% Get the previous release path from a global variable
|
%% Get the previous release path from a global variable
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
'generate-upgrade'(_Config, ReltoolFile) ->
|
'generate-upgrade'(_Config, ReltoolFile) ->
|
||||||
%% Get the old release path
|
%% Get the old release path
|
||||||
OldVerPath = rebar_rel_utils:get_previous_release_path(),
|
OldVerPath = rebar_rel_utils:get_previous_release_path(),
|
||||||
|
|
||||||
%% Run checks to make sure that building a package is possible
|
%% Run checks to make sure that building a package is possible
|
||||||
{NewName, NewVer} = run_checks(OldVerPath, ReltoolFile),
|
{NewName, NewVer} = run_checks(OldVerPath, ReltoolFile),
|
||||||
NameVer = NewName ++ "_" ++ NewVer,
|
NameVer = NewName ++ "_" ++ NewVer,
|
||||||
|
|
Loading…
Reference in a new issue