diff options
author | Serge Aleynikov <saleyn@gmail.com> | 2012-10-25 07:15:54 +0400 |
---|---|---|
committer | Serge Aleynikov <saleyn@gmail.com> | 2012-10-25 07:25:56 +0400 |
commit | 3f5ab55787bd2b8285b648c379f3fc27f9f5d584 (patch) | |
tree | f897d0d1f25d18117b043583b068cfe7851a76b1 /src | |
parent | 27a1bbb9dae7aad81e0ccf2912530dd98156b024 (diff) |
Fix erlydtl dependency check
When a DTL template includes other template files, those files don't need
to be compiled separately, and therefore can be given an extension different
from `source_ext` (such as `.dtli`) to avoid being compiled. This fix
allows rebar to find included dependencies with names `*.dtl*` rather
than `*.dtl` and properly determine if a template file needs to be recompiled.
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_erlydtl_compiler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index 12077f2..958b976 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -173,8 +173,8 @@ referenced_dtls1(Step, Config, Seen) -> AllRefs = lists:append( [begin - Cmd = lists:flatten(["grep -o [^\\\"]*", - ExtMatch, " ", F]), + Cmd = lists:flatten(["grep -o [^\\\"]*\\", + ExtMatch, "[^\\\"]* ", F]), case rebar_utils:sh(Cmd, ShOpts) of {ok, Res} -> string:tokens(Res, "\n"); |