mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Allow bin/* install from dot-dirs. Fixes rvm and multiruby installations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed02f66eca
commit
18b4480e31
2 changed files with 8 additions and 1 deletions
|
@ -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)])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue