summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Lapshin <max@maxidoors.ru>2011-04-29 14:58:31 +0400
committerMax Lapshin <max@maxidoors.ru>2011-04-29 14:58:31 +0400
commit8666d57d78cd805b80d296e39d2a9066c734033b (patch)
treedfaa30ae45150c291ec0fae64abffe1fe055cb7f
parentf51e3df3b9061a1fa3c984349c8216c50c4f8442 (diff)
Expand variables in replace overlay
-rw-r--r--src/rebar_reltool.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl
index ed7c499..5e71814 100644
--- a/src/rebar_reltool.erl
+++ b/src/rebar_reltool.erl
@@ -341,7 +341,7 @@ execute_overlay([{replace, Out, Regex, Replacement, Opts} | Rest],
Vars, BaseDir, TargetDir) ->
Filename = rebar_templater:render(filename:join(TargetDir, Out), Vars),
{ok, OrigData} = file:read_file(Filename),
- Data = re:replace(OrigData, Regex, Replacement,
+ Data = re:replace(OrigData, Regex, rebar_templater:render(Replacement, Vars),
[global, {return, binary}] ++ Opts),
case file:write_file(Filename, Data) of
ok ->