From 006e8d2e71375e5a9554115bc5771447bc44ec27 Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 18 Mar 2004 10:49:20 +0000 Subject: * instruby.rb, rubytest.rb: do not depend on srcdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- instruby.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'instruby.rb') diff --git a/instruby.rb b/instruby.rb index 146bb2d4f3..c4ab168d6b 100644 --- a/instruby.rb +++ b/instruby.rb @@ -3,7 +3,8 @@ load "./rbconfig.rb" include Config -$:.unshift File.join(CONFIG["srcdir"], "lib") +srcdir = File.dirname(__FILE__) +$:.unshift File.join(srcdir, "lib") require 'fileutils' require 'shellwords' require 'optparse' @@ -123,7 +124,7 @@ if dll == lib and dll != arc end end -Dir.chdir CONFIG["srcdir"] +Dir.chdir srcdir ruby_shebang = File.join(CONFIG["bindir"], ruby_install_name) if File::ALT_SEPARATOR -- cgit v1.2.3