diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-01-04 05:40:39 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-01-04 05:40:39 -0700 |
commit | 42647f4c22e6fe1ddcafa638089dc5bc79e44c04 (patch) | |
tree | 2a74ea1528ff795d47c5ac3eaebf128c20b04411 | |
parent | fa2a58261ada42798a393a9283fe79a8ca25f365 (diff) |
Tweak regex to properly match extension and not just .erl anywhere in filename
-rw-r--r-- | src/rebar_erlc_compiler.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index ee51cd0..2549030 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -66,7 +66,7 @@ clean(_Config, _AppFile) -> doterl_compile(Config, Outdir) -> FirstErls = rebar_config:get_list(Config, erl_first_files, []), - RestErls = [Source || Source <- rebar_utils:find_files("src", ".*.erl"), + RestErls = [Source || Source <- rebar_utils:find_files("src", ".*\\.erl\$"), lists:member(Source, FirstErls) == false], rebar_base_compiler:run(Config, FirstErls, RestErls, fun(S, C) -> internal_erl_compile(S, C, Outdir) end). |