diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-13 19:56:10 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-13 19:56:10 +0100 |
commit | 41d6abc64d2e0e84106115cff32f5f7b8af0f8ad (patch) | |
tree | 9f2c8315f1480574370791d80fcf30fb0ff9862d | |
parent | 5b15c851d8faad39973cf27505a74feae85f8739 (diff) |
Fix whitespace errors
-rw-r--r-- | src/rebar_appups.erl | 2 | ||||
-rw-r--r-- | src/rebar_rel_utils.erl | 10 | ||||
-rw-r--r-- | src/rebar_utils.erl | 11 |
3 files changed, 12 insertions, 11 deletions
diff --git a/src/rebar_appups.erl b/src/rebar_appups.erl index 923dad5..6271e77 100644 --- a/src/rebar_appups.erl +++ b/src/rebar_appups.erl @@ -44,7 +44,7 @@ TargetParentDir = rebar_rel_utils:get_target_parent_dir(ReltoolConfig), 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 {Name, _Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolConfig), diff --git a/src/rebar_rel_utils.erl b/src/rebar_rel_utils.erl index 081e409..81ddbfb 100644 --- a/src/rebar_rel_utils.erl +++ b/src/rebar_rel_utils.erl @@ -201,13 +201,13 @@ get_root_dir(ReltoolConfig) -> %% =================================================================== make_proplist([{_,_}=H|T], Acc) -> - make_proplist(T, [H|Acc]); + make_proplist(T, [H|Acc]); make_proplist([H|T], Acc) -> - App = element(1, H), - Ver = element(2, H), - make_proplist(T, [{App,Ver}|Acc]); + App = element(1, H), + Ver = element(2, H), + make_proplist(T, [{App,Ver}|Acc]); make_proplist([], Acc) -> - Acc. + Acc. expand_version(ReltoolConfig, Dir) -> case lists:keyfind(sys, 1, ReltoolConfig) of diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 1222adc..f6e3a02 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -260,9 +260,10 @@ deprecated(Old, New, When) -> patch_on_windows(Cmd, Env) -> case os:type() of {win32,nt} -> - "cmd /q /c " ++ lists:foldl(fun({Key, Value}, Acc) -> - expand_env_variable(Acc, Key, Value) - end, Cmd, Env); + "cmd /q /c " + ++ lists:foldl(fun({Key, Value}, Acc) -> + expand_env_variable(Acc, Key, Value) + end, Cmd, Env); _ -> Cmd end. @@ -355,8 +356,8 @@ vcs_vsn_cmd(git) -> case os:type() of {win32,nt} -> "FOR /F \"usebackq tokens=* delims=\" %i in " - "(`git log -n 1 \"--pretty=format:%h\" .`) do " - "@git describe --always --tags %i"; + "(`git log -n 1 \"--pretty=format:%h\" .`) do " + "@git describe --always --tags %i"; _ -> "git describe --always --tags `git log -n 1 --pretty=format:%h .`" end; |