summaryrefslogtreecommitdiff
path: root/instruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/instruby.rb b/instruby.rb
index a9d66c7..f56bb2e 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 'getopts'
@@ -121,7 +122,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