1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/envutil.rb: use Config::CONFIG["ruby_install_name"],

not "ruby".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-10-13 14:59:25 +00:00
parent 4de0bb549b
commit 046dff7f11
2 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Oct 13 23:55:59 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* test/ruby/envutil.rb: use Config::CONFIG["ruby_install_name"],
not "ruby".
Mon Oct 13 23:57:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_feature_p): match by classified suffix.

View file

@ -5,9 +5,17 @@ module EnvUtil
if File.exist? miniruby or File.exist? miniruby+".exe"
return File.expand_path(miniruby)
end
miniruby = "../"+miniruby
miniruby = File.join("..", miniruby)
end
begin
require "rbconfig"
File.join(
Config::CONFIG["bindir"],
Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"]
)
rescue LoadError
"ruby"
end
"ruby"
end
module_function :rubybin
end