зеркало из https://github.com/github/ruby.git
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:
Родитель
ed02f66eca
Коммит
18b4480e31
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 3 05:37:46 2010 Ryan Davis <ryand-ruby@zenspider.com>
|
||||
|
||||
* tool/rbinstall.rb (install-bin): Allow bin/* install from dot-dirs.
|
||||
Fixes rvm and multiruby installations.
|
||||
|
||||
Thu Jun 3 01:22:45 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk.rb: fix typo and race condition.
|
||||
|
|
|
@ -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)])
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче