From 8666d57d78cd805b80d296e39d2a9066c734033b Mon Sep 17 00:00:00 2001 From: Max Lapshin Date: Fri, 29 Apr 2011 14:58:31 +0400 Subject: Expand variables in replace overlay --- src/rebar_reltool.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -> -- cgit v1.1