summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2011-10-21 17:59:29 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-10-21 17:59:29 +0200
commit74ca540939f66282d7193326692d64d610009b71 (patch)
tree3534d6ddf3eae262b0fccf9037ebb69bf7bc05cc /src
parent285ca0f6be45abecfebd792b46e3a19ebb61023b (diff)
Use same variable names as file:make_link/2
Diffstat (limited to 'src')
-rw-r--r--src/rebar_templater.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index d5709c3..bf8d54c 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -380,15 +380,15 @@ execute_template([{chmod, Mod, File} | Rest], TemplateType, TemplateName,
?ABORT("Failed while processing template instruction "
"{cmod, ~b, ~s}: ~p~n", [Mod, File, Reason])
end;
-execute_template([{symlink, Target, LinkName} | Rest], TemplateType, TemplateName,
+execute_template([{symlink, Existing, New} | Rest], TemplateType, TemplateName,
Context, Force, ExistingFiles) ->
- case file:make_symlink(Target, LinkName) of
+ case file:make_symlink(Existing, New) of
ok ->
execute_template(Rest, TemplateType, TemplateName,
Context, Force, ExistingFiles);
{error, Reason} ->
?ABORT("Failed while processing template instruction "
- "{symlink, ~s, ~s}: ~p~n", [Target, LinkName, Reason])
+ "{symlink, ~s, ~s}: ~p~n", [Existing, New, Reason])
end;
execute_template([{variables, _} | Rest], TemplateType, TemplateName, Context,
Force, ExistingFiles) ->