mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
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.
This commit is contained in:
parent
27a1bbb9da
commit
3f5ab55787
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ referenced_dtls1(Step, Config, Seen) ->
|
||||||
AllRefs =
|
AllRefs =
|
||||||
lists:append(
|
lists:append(
|
||||||
[begin
|
[begin
|
||||||
Cmd = lists:flatten(["grep -o [^\\\"]*",
|
Cmd = lists:flatten(["grep -o [^\\\"]*\\",
|
||||||
ExtMatch, " ", F]),
|
ExtMatch, "[^\\\"]* ", F]),
|
||||||
case rebar_utils:sh(Cmd, ShOpts) of
|
case rebar_utils:sh(Cmd, ShOpts) of
|
||||||
{ok, Res} ->
|
{ok, Res} ->
|
||||||
string:tokens(Res, "\n");
|
string:tokens(Res, "\n");
|
||||||
|
|
Loading…
Reference in a new issue