diff options
author | Tristan Sloughter <t@crashfast.com> | 2018-11-24 08:27:13 -0700 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2018-11-24 08:27:22 -0700 |
commit | 1071a96735aa6295a58c553265f72a7a6ba62b87 (patch) | |
tree | 79dbadc2e1731c8c08d363990872fa9818b8f9c8 /src | |
parent | a057f0ee8e5c6fcbc79373d3aa0ffb6acae5665e (diff) |
fix base_compiler:run to take a single directory
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_base_compiler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 2fb3a12..ad81c86 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -96,14 +96,14 @@ run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, TargetDir :: file:filename(), SourceExt :: string(), TargetExt :: string(). -run(Config, FirstFiles, SourceDirs, SourceExt, TargetDir, TargetExt, +run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, Compile3Fn, Opts) -> %% Convert simple extension to proper regex SourceExtRe = "^(?!\\._).*\\" ++ SourceExt ++ [$$], Recursive = proplists:get_value(recursive, Opts, true), %% Find all possible source files - FoundFiles = rebar_utils:find_files_in_dirs(SourceDirs, SourceExtRe, Recursive), + FoundFiles = rebar_utils:find_files(SourceDir, SourceExtRe, Recursive), %% Remove first files from found files RestFiles = [Source || Source <- FoundFiles, not lists:member(Source, FirstFiles)], |