Skip to content

Commit

Permalink
* instruby.rb: moved into tool/.
Browse files Browse the repository at this point in the history
* mkconfig.rb: ditto.

* rubytest.rb: ditto.

* runruby.rb: ditto.

* common.mk: follows the moves.

* configure.in: ditto.

* win32/Makefile.sub: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
yugui committed May 22, 2009
1 parent 58949cf commit a654e0b
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
16 changes: 16 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
Fri May 22 20:10:18 2009 Yuki Sonoda (Yugui) <[email protected]>

* instruby.rb: moved into tool/.

* mkconfig.rb: ditto.

* rubytest.rb: ditto.

* runruby.rb: ditto.

* common.mk: follows the moves.

* configure.in: ditto.

* win32/Makefile.sub: ditto.

Fri May 22 05:09:43 2009 Yukihiro Matsumoto <[email protected]>

* array.c (rb_ary_slice_bang): avoid call of rb_scan_args() unless
Expand Down
8 changes: 4 additions & 4 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
--make-flags="$(MAKEFLAGS)"
EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \
--make-flags="MINIRUBY='$(MINIRUBY)'" --
INSTRUBY = $(MINIRUBY) $(srcdir)/instruby.rb
INSTRUBY = $(MINIRUBY) $(srcdir)/tool/instruby.rb
INSTRUBY_ARGS = $(SCRIPT_ARGS) \
--data-mode=$(INSTALL_DATA_MODE) \
--prog-mode=$(INSTALL_PROG_MODE) \
Expand Down Expand Up @@ -396,7 +396,7 @@ btest-ruby: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
@$(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib" -q $(OPTS)

test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
@$(RUNRUBY) $(srcdir)/rubytest.rb
@$(RUNRUBY) $(srcdir)/tool/rubytest.rb

test-knownbug: miniruby$(EXEEXT) $(PROGRAM) $(RBCONFIG) PHONY
$(MINIRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM)" $(OPTS) $(srcdir)/KNOWNBUGS.rb
Expand All @@ -410,8 +410,8 @@ extconf: $(PREP)
$(MAKEDIRS) "$(EXTCONFDIR)"
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)

$(RBCONFIG): $(srcdir)/mkconfig.rb config.status $(PREP)
@$(MINIRUBY) $(srcdir)/mkconfig.rb -timestamp=$@ \
$(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(PREP)
@$(MINIRUBY) $(srcdir)/tool/mkconfig.rb -timestamp=$@ \
-install_name=$(RUBY_INSTALL_NAME) \
-so_name=$(RUBY_SO_NAME) rbconfig.rb

Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,7 @@ else
MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib'
MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common -I./- -r$(srcdir)/ext/purelib.rb'
PREP='miniruby$(EXEEXT)'
RUNRUBY='$(MINIRUBY) $(srcdir)/runruby.rb --extout=$(EXTOUT)'
RUNRUBY='$(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=$(EXTOUT)'
fi
AC_SUBST(MINIRUBY)
AC_SUBST(PREP)
Expand Down
2 changes: 1 addition & 1 deletion instruby.rb → tool/instruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
include RbConfig
$".unshift File.expand_path("./rbconfig.rb")

srcdir = File.dirname(__FILE__)
srcdir = File.expand_path('..', File.dirname(__FILE__))
unless defined?(CROSS_COMPILING) and CROSS_COMPILING
$:.replace([File.expand_path("lib", srcdir), Dir.pwd])
end
Expand Down
2 changes: 1 addition & 1 deletion mkconfig.rb → tool/mkconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$install_name ||= nil
$so_name ||= nil

srcdir = File.dirname(__FILE__)
srcdir = File.expand_path('..', File.dirname(__FILE__))
$:.replace [srcdir+"/lib"] unless defined?(CROSS_COMPILING)
$:.unshift(".")

Expand Down
2 changes: 1 addition & 1 deletion rubytest.rb → tool/rubytest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$stderr.reopen($stdout)
error = ''

srcdir = File.dirname(__FILE__)
srcdir = File.expand_path('..', File.dirname(__FILE__))
`#{ruby} #{srcdir}/sample/test.rb`.each_line do |line|
if line =~ /^end of test/
print "\ntest succeeded\n"
Expand Down
2 changes: 1 addition & 1 deletion runruby.rb → tool/runruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
ARGV.shift
end

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

abs_archdir = File.expand_path(archdir)
Expand Down
2 changes: 1 addition & 1 deletion win32/Makefile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ MINIRUBY = .\miniruby$(EXEEXT) -I$(srcdir)/lib
RUNRUBY = .\$(PROGRAM) -I$(srcdir)/lib -I"$(EXTOUT)/$(arch)"
!endif
MINIRUBY = $(MINIRUBY) $(MINIRUBYOPT)
RUNRUBY = $(RUNRUBY) "$(srcdir)/runruby.rb" --extout="$(EXTOUT)" $(RUNRUBYOPT) --
RUNRUBY = $(RUNRUBY) "$(srcdir)/tool/runruby.rb" --extout="$(EXTOUT)" $(RUNRUBYOPT) --
!ifndef RUBY
RUBY = ruby
!endif
Expand Down

0 comments on commit a654e0b

Please sign in to comment.