Skip to content

Commit

Permalink
* runruby.rb: should load built rbconfig.rb.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jun 23, 2005
1 parent 61d0a56 commit 58f4fbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Thu Jun 23 23:55:59 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>

* runruby.rb: should load built rbconfig.rb.

Thu Jun 23 16:53:15 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>

* ext/tk/lib/tk/canvastag.rb: TkcGroup.new cannot include given items.
Expand All @@ -7,7 +11,7 @@ Thu Jun 23 16:53:15 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk/canvas.rb: TkCanvas#dtag and some subcommands of
TkCanvas#addtag fail to treat a TkcTag argument.

* ext/tk/lib/tk/event.rb: add TkEvent::Event#generate to help to send
* ext/tk/lib/tk/event.rb: add TkEvent::Event#generate to help to send
current event to other widgets.

Mon Jun 20 18:44:04 2005 Tanaka Akira <akr@m17n.org>
Expand Down
10 changes: 6 additions & 4 deletions runruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,20 @@
ARGV.shift
end

require 'rbconfig'
config = Config::CONFIG

srcdir ||= File.dirname(__FILE__)
archdir ||= '.'

abs_archdir = File.expand_path(archdir)
$:.unshift(abs_archdir)

require 'rbconfig'
config = Config::CONFIG

ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT'])
unless File.exist?(ruby)
abort "#{ruby} is not found.\nTry `make' first, then `make test', please.\n"
end

abs_archdir = File.expand_path(archdir)
libs = [abs_archdir, File.expand_path("lib", srcdir)]
if extout
abs_extout = File.expand_path(extout)
Expand Down

0 comments on commit 58f4fbc

Please sign in to comment.