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 | f0506f27e84fa535cce008d74ac0b6dff2456074 (patch) | |
tree | 5e97be4724c685c7b7dec065f48e493f60f75d81 /instruby.rb | |
parent | 4b99a4791e058ecc2d1ca94b55cc7c606afa4db9 (diff) | |
download | ruby-f0506f27e84fa535cce008d74ac0b6dff2456074.tar.gz ruby-f0506f27e84fa535cce008d74ac0b6dff2456074.tar.xz ruby-f0506f27e84fa535cce008d74ac0b6dff2456074.zip |
* instruby.rb, rubytest.rb: do not depend on srcdir.
git-svn-id: http://svn.ruby-lang.org/repos/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 146bb2d4f..c4ab168d6 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 |