diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-05-14 22:14:17 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-05-14 22:26:42 +0200 |
commit | 635d1a9456dc475116b5a5568fc4ab883d09dd8a (patch) | |
tree | 4cb2723c94c70a8bdb1115362ed15d651fec40d0 | |
parent | 2e361091814fe704c4ca6421e538c0477deb88c9 (diff) |
Fix file extension bug (Reported-by: Tony Rogvall)
-rw-r--r-- | src/rebar_port_compiler.erl | 6 |
1 files 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_*()] |