diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-03-05 22:56:31 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-03-05 22:56:31 +0100 |
commit | dfb5af404978fad2cef4c1e6a4c6545217e55cc8 (patch) | |
tree | c3b9c86c8e27420ae317c8c74e352dc11c0aedd5 /src/rebar_templater.erl | |
parent | a49d257412015b9cedff18103ba52d6deef6a808 (diff) |
Add forward-compatible escript_foldl function
escript:foldl/3 was undocumented and has been replaced with
better APIs post-R13B04. The new exported funs are officially
documented.
Diffstat (limited to 'src/rebar_templater.erl')
-rw-r--r-- | src/rebar_templater.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl index c4217cd..fd1d813 100644 --- a/src/rebar_templater.erl +++ b/src/rebar_templater.erl @@ -110,8 +110,11 @@ create(_Config, _) -> %% Scan the current escript for available files and cache in pdict. %% cache_escript_files() -> - {ok, Files} = escript:foldl(fun(Name, _, GetBin, Acc) -> [{Name, GetBin()} | Acc] end, - [], rebar_config:get_global(escript, undefined)), + {ok, Files} = rebar_utils:escript_foldl( + fun(Name, _, GetBin, Acc) -> + [{Name, GetBin()} | Acc] + end, + [], rebar_config:get_global(escript, undefined)), erlang:put(escript_files, Files). |