mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/envutil.rb (EnvUtil.rubybin): search "ruby" instead of
"miniruby". [ruby-dev:28140] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a274020ff7
commit
99ee69b9f2
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Dec 29 17:02:07 2005 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* test/ruby/envutil.rb (EnvUtil.rubybin): search "ruby" instead of
|
||||
"miniruby". [ruby-dev:28140]
|
||||
|
||||
Thu Dec 29 11:22:34 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* lib/generator.rb: reimplemented Generator class with Thread instead of
|
||||
|
|
|
@ -3,12 +3,12 @@ module EnvUtil
|
|||
if ruby = ENV["RUBY"]
|
||||
return ruby
|
||||
end
|
||||
miniruby = "miniruby"
|
||||
ruby = "ruby"
|
||||
3.times do
|
||||
if File.exist? miniruby or File.exist? miniruby+".exe"
|
||||
return File.expand_path(miniruby)
|
||||
if File.exist? ruby or File.exist? ruby+".exe"
|
||||
return File.expand_path(ruby)
|
||||
end
|
||||
miniruby = File.join("..", miniruby)
|
||||
ruby = File.join("..", ruby)
|
||||
end
|
||||
begin
|
||||
require "rbconfig"
|
||||
|
|
Loading…
Reference in a new issue