summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index f690911f5c..79aee2e476 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -404,7 +404,9 @@ install?(:local, :comm, :bin, :'bin-comm') do
end
for src in Dir[File.join(srcdir, "bin/*")]
next unless File.file?(src)
- next if /\/[.#]|(\.(old|bak|orig|rej|diff|patch|core)|~|\/core)$/i =~ src
+ s = src.downcase
+ next if %w(old bak orig rej diff patch core).include? File.extname(s)
+ next if /^\.\#|(~|core)$/i =~ File.basename(s)
name = RbConfig.expand(trans[File.basename(src)])