summaryrefslogtreecommitdiff
path: root/runruby.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-23 14:56:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-23 14:56:40 +0000
commitfc114887e69a26f27a09faeb91ae3b18b620619e (patch)
tree3005ae7db007479cee5bdecba27c31ab5ceb7487 /runruby.rb
parent20484c52b00500b223bbbc2cdec5331171ab5ff2 (diff)
downloadruby-fc114887e69a26f27a09faeb91ae3b18b620619e.tar.gz
* runruby.rb: should load built rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'runruby.rb')
-rwxr-xr-xrunruby.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/runruby.rb b/runruby.rb
index a175dcb9aa..e749441553 100755
--- a/runruby.rb
+++ b/runruby.rb
@@ -18,18 +18,20 @@ while arg = ARGV[0]
ARGV.shift
end
-require 'rbconfig'
-config = Config::CONFIG
-
srcdir ||= File.dirname(__FILE__)
archdir ||= '.'
+abs_archdir = File.expand_path(archdir)
+$:.unshift(abs_archdir)
+
+require 'rbconfig'
+config = Config::CONFIG
+
ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT'])
unless File.exist?(ruby)
abort "#{ruby} is not found.\nTry `make' first, then `make test', please.\n"
end
-abs_archdir = File.expand_path(archdir)
libs = [abs_archdir, File.expand_path("lib", srcdir)]
if extout
abs_extout = File.expand_path(extout)