diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-07-25 14:10:04 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-07-25 14:10:04 -0500 |
commit | 19c215ee9fe0726a1983b36f4f8bcc21d42a5ef8 (patch) | |
tree | 8a47941bbc34397269c9b42a84e33db6d0294476 /src/rebar_base_compiler.erl | |
parent | e8a6cfe04ab0612dcd089c7aed035520e3dd9aee (diff) | |
parent | 3fb4a7c540da227382ea0831c0c6424765900123 (diff) |
Merge pull request #299 from tuncer/rok-resource-forks
Fix OS X resource fork handling (Reported-by: Richard O'Keefe)
Diffstat (limited to 'src/rebar_base_compiler.erl')
-rw-r--r-- | src/rebar_base_compiler.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 1957070..b400512 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -28,8 +28,11 @@ -include("rebar.hrl"). --export([run/4, run/7, run/8, - ok_tuple/3, error_tuple/5]). +-export([run/4, + run/7, + run/8, + ok_tuple/3, + error_tuple/5]). %% =================================================================== %% Public API @@ -60,7 +63,7 @@ run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, Compile3Fn, Opts) -> %% Convert simple extension to proper regex - SourceExtRe = ".*\\" ++ SourceExt ++ [$$], + SourceExtRe = "^[^._].*\\" ++ SourceExt ++ [$$], Recursive = proplists:get_value(recursive, Opts, true), %% Find all possible source files |