fix Rscons.set_suffix to append the given suffix if the filename has none

This commit is contained in:
josh committed 2015-01-20 21:13:27 -05:00
1 parent 8142d0bbc8
commit d28722a4bb
3 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ module Rscons
#
# @return [String] New path.
def self.set_suffix(path, suffix)
path.sub(/\.[^.]*$/, suffix)
path.sub(/\.[^.]*$/, "") + suffix
end
# Return the system shell and arguments for executing a shell command.