From 635d1a9456dc475116b5a5568fc4ab883d09dd8a Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 14 May 2012 22:14:17 +0200 Subject: [PATCH] Fix file extension bug (Reported-by: Tony Rogvall) --- src/rebar_port_compiler.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index 65106d9..cdd9be6 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -304,9 +304,9 @@ maybe_switch_extension(_OsType, Target) -> switch_to_dll_or_exe(Target) -> case filename:extension(Target) of - ".so" -> filename:rootname(Target, ".so") ++ ".dll"; - [] -> Target ++ ".exe"; - Other -> Other + ".so" -> filename:rootname(Target, ".so") ++ ".dll"; + [] -> Target ++ ".exe"; + _Other -> Target end. %% TODO: DEPRECATED: remove support for non-port_specs syntax [old_*()]