From 39a4ca0c041543aba68740c8e92af1b2af7be883 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Thu, 9 Apr 2015 09:48:09 -0500 Subject: remove unneeded string:tokens for target_base --- src/rebar_erlc_compiler.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 27bf09b..6b51642 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -355,8 +355,7 @@ internal_erl_compile(Config, Dir, Module, OutDir, ErlOpts) -> end. target_base(OutDir, Source) -> - Module = filename:basename(Source, ".erl"), - filename:join([OutDir|string:tokens(Module, ".")]). + filename:join(OutDir, filename:basename(Source, ".erl")). -spec compile_mib(file:filename(), file:filename(), rebar_state:t()) -> 'ok'. -- cgit v1.1