diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-18 10:49:20 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-18 10:49:20 +0000 |
commit | 006e8d2e71375e5a9554115bc5771447bc44ec27 (patch) | |
tree | 5e97be4724c685c7b7dec065f48e493f60f75d81 /instruby.rb | |
parent | c223709c3b95127e7a0c0b3812ea2e89ecb8646f (diff) | |
download | ruby-006e8d2e71375e5a9554115bc5771447bc44ec27.tar.gz |
* 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
Diffstat (limited to 'instruby.rb')
-rw-r--r-- | instruby.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |