summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2011-05-20 08:23:19 -0700
committerDave Smith <dizzyd@dizzyd.com>2011-05-20 08:23:19 -0700
commitea8aca4519178287ce5ee706f9d1c88d2b864f2a (patch)
treec8667709cbf8513aaff29597e2f1dd878bdcc1e7 /src
parenta34c1a7b124305bb0a74b4a427bc88ea916471ce (diff)
parent8666d57d78cd805b80d296e39d2a9066c734033b (diff)
Merge pull request #69 from maxlapshin/master
I've added variable expansion in replace overlay
Diffstat (limited to 'src')
-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 ->