From cfdd154b903c922ecea8da12a53fc91b3d026789 Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 18 Feb 2012 09:00:02 +0000 Subject: merges r28134 from trunk into ruby_1_9_2. -- Allow bin/* install from dot-dirs. Fixes rvm and multiruby installations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tool') 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)]) -- cgit v1.2.3