From 7dc76d578ece73a0ae43d63c733b3c8778c46342 Mon Sep 17 00:00:00 2001 From: Kostis Sagonas Date: Tue, 26 Oct 2010 00:38:51 +0200 Subject: Tidier improvements --- src/rebar_erlc_compiler.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/rebar_erlc_compiler.erl') diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index e0d4def..50e890c 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -104,11 +104,11 @@ doterl_compile(Config, OutDir, MoreSources) -> ErlOpts = filter_defines(rebar_config:get(Config, erl_opts, []), []), ?DEBUG("erl_opts ~p~n",[ErlOpts]), %% Support the src_dirs option allowing multiple directories to - %% contain erlang source. This might be used, for example, should eunit tests be - %% separated from the core application source. + %% contain erlang source. This might be used, for example, should + %% eunit tests be separated from the core application source. SrcDirs = src_dirs(proplists:append_values(src_dirs, ErlOpts)), RestErls = [Source || Source <- gather_src(SrcDirs, []) ++ MoreSources, - lists:member(Source, FirstErls) == false], + not lists:member(Source, FirstErls)], % Split RestErls so that parse_transforms and behaviours are instead added % to erl_first_files, parse transforms first. @@ -131,8 +131,8 @@ doterl_compile(Config, OutDir, MoreSources) -> CurrPath = code:get_path(), true = code:add_path("ebin"), rebar_base_compiler:run(Config, NewFirstErls, OtherErls, - fun(S, C) -> internal_erl_compile(S, C, OutDir, - ErlOpts) + fun(S, C) -> + internal_erl_compile(S, C, OutDir, ErlOpts) end), true = code:set_path(CurrPath), ok. -- cgit v1.1