mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix whitespace errors
This commit is contained in:
parent
5b15c851d8
commit
41d6abc64d
3 changed files with 12 additions and 11 deletions
|
@ -44,7 +44,7 @@
|
||||||
TargetParentDir = rebar_rel_utils:get_target_parent_dir(ReltoolConfig),
|
TargetParentDir = rebar_rel_utils:get_target_parent_dir(ReltoolConfig),
|
||||||
|
|
||||||
OldVerPath = filename:join([TargetParentDir,
|
OldVerPath = filename:join([TargetParentDir,
|
||||||
rebar_rel_utils:get_previous_release_path()]),
|
rebar_rel_utils:get_previous_release_path()]),
|
||||||
|
|
||||||
%% Get the new and old release name and versions
|
%% Get the new and old release name and versions
|
||||||
{Name, _Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolConfig),
|
{Name, _Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolConfig),
|
||||||
|
|
|
@ -201,13 +201,13 @@ get_root_dir(ReltoolConfig) ->
|
||||||
%% ===================================================================
|
%% ===================================================================
|
||||||
|
|
||||||
make_proplist([{_,_}=H|T], Acc) ->
|
make_proplist([{_,_}=H|T], Acc) ->
|
||||||
make_proplist(T, [H|Acc]);
|
make_proplist(T, [H|Acc]);
|
||||||
make_proplist([H|T], Acc) ->
|
make_proplist([H|T], Acc) ->
|
||||||
App = element(1, H),
|
App = element(1, H),
|
||||||
Ver = element(2, H),
|
Ver = element(2, H),
|
||||||
make_proplist(T, [{App,Ver}|Acc]);
|
make_proplist(T, [{App,Ver}|Acc]);
|
||||||
make_proplist([], Acc) ->
|
make_proplist([], Acc) ->
|
||||||
Acc.
|
Acc.
|
||||||
|
|
||||||
expand_version(ReltoolConfig, Dir) ->
|
expand_version(ReltoolConfig, Dir) ->
|
||||||
case lists:keyfind(sys, 1, ReltoolConfig) of
|
case lists:keyfind(sys, 1, ReltoolConfig) of
|
||||||
|
|
|
@ -260,9 +260,10 @@ deprecated(Old, New, When) ->
|
||||||
patch_on_windows(Cmd, Env) ->
|
patch_on_windows(Cmd, Env) ->
|
||||||
case os:type() of
|
case os:type() of
|
||||||
{win32,nt} ->
|
{win32,nt} ->
|
||||||
"cmd /q /c " ++ lists:foldl(fun({Key, Value}, Acc) ->
|
"cmd /q /c "
|
||||||
expand_env_variable(Acc, Key, Value)
|
++ lists:foldl(fun({Key, Value}, Acc) ->
|
||||||
end, Cmd, Env);
|
expand_env_variable(Acc, Key, Value)
|
||||||
|
end, Cmd, Env);
|
||||||
_ ->
|
_ ->
|
||||||
Cmd
|
Cmd
|
||||||
end.
|
end.
|
||||||
|
@ -355,8 +356,8 @@ vcs_vsn_cmd(git) ->
|
||||||
case os:type() of
|
case os:type() of
|
||||||
{win32,nt} ->
|
{win32,nt} ->
|
||||||
"FOR /F \"usebackq tokens=* delims=\" %i in "
|
"FOR /F \"usebackq tokens=* delims=\" %i in "
|
||||||
"(`git log -n 1 \"--pretty=format:%h\" .`) do "
|
"(`git log -n 1 \"--pretty=format:%h\" .`) do "
|
||||||
"@git describe --always --tags %i";
|
"@git describe --always --tags %i";
|
||||||
_ ->
|
_ ->
|
||||||
"git describe --always --tags `git log -n 1 --pretty=format:%h .`"
|
"git describe --always --tags `git log -n 1 --pretty=format:%h .`"
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in a new issue