summaryrefslogtreecommitdiffstats
path: root/runruby.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-26 20:35:44 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-26 20:35:44 +0000
commit01a8933f4ae7bfb18b27b4c69e3fa637d35904ea (patch)
tree105c315b02be8e7fbc0be80dfb1d0710650d1bc1 /runruby.rb
parent47447b1fa8050c0adf632e83d2e923481ee1ffc2 (diff)
downloadruby-01a8933f4ae7bfb18b27b4c69e3fa637d35904ea.tar.gz
ruby-01a8933f4ae7bfb18b27b4c69e3fa637d35904ea.tar.xz
ruby-01a8933f4ae7bfb18b27b4c69e3fa637d35904ea.zip
* runruby.rb: eliminate uninitialized variable.
[ruby-core:11255] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'runruby.rb')
-rwxr-xr-xrunruby.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/runruby.rb b/runruby.rb
index 767ded6b4..cbc5e5758 100755
--- a/runruby.rb
+++ b/runruby.rb
@@ -41,11 +41,7 @@ config["bindir"] = abs_archdir
ENV["RUBY"] = File.expand_path(ruby)
ENV["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
-if pure
libs << File.expand_path("ext", srcdir) << "-"
-elsif e = ENV["RUBYLIB"]
- libs |= e.split(File::PATH_SEPARATOR)
-end
ENV["RUBYLIB"] = $:.replace(libs).join(File::PATH_SEPARATOR)
libruby_so = File.join(abs_archdir, config['LIBRUBY_SO'])
@@ -59,7 +55,6 @@ if File.file?(libruby_so)
end
cmd = [ruby]
-cmd << "-rpurelib.rb" if pure
+cmd << "-rpurelib.rb"
cmd.concat(ARGV)
-cmd.unshift(*debugger) if debugger
exec(*cmd)