* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2009-05-22 11:48:42 +00:00
parent 58949cf8f3
commit a654e0b57b
8 changed files with 26 additions and 10 deletions

View File

@ -1,3 +1,19 @@
Fri May 22 20:10:18 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* 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 <matz@ruby-lang.org> Fri May 22 05:09:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_slice_bang): avoid call of rb_scan_args() unless * array.c (rb_ary_slice_bang): avoid call of rb_scan_args() unless

View File

@ -103,7 +103,7 @@ SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
--make-flags="$(MAKEFLAGS)" --make-flags="$(MAKEFLAGS)"
EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \ EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \
--make-flags="MINIRUBY='$(MINIRUBY)'" -- --make-flags="MINIRUBY='$(MINIRUBY)'" --
INSTRUBY = $(MINIRUBY) $(srcdir)/instruby.rb INSTRUBY = $(MINIRUBY) $(srcdir)/tool/instruby.rb
INSTRUBY_ARGS = $(SCRIPT_ARGS) \ INSTRUBY_ARGS = $(SCRIPT_ARGS) \
--data-mode=$(INSTALL_DATA_MODE) \ --data-mode=$(INSTALL_DATA_MODE) \
--prog-mode=$(INSTALL_PROG_MODE) \ --prog-mode=$(INSTALL_PROG_MODE) \
@ -396,7 +396,7 @@ btest-ruby: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
@$(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib" -q $(OPTS) @$(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib" -q $(OPTS)
test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
@$(RUNRUBY) $(srcdir)/rubytest.rb @$(RUNRUBY) $(srcdir)/tool/rubytest.rb
test-knownbug: miniruby$(EXEEXT) $(PROGRAM) $(RBCONFIG) PHONY test-knownbug: miniruby$(EXEEXT) $(PROGRAM) $(RBCONFIG) PHONY
$(MINIRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM)" $(OPTS) $(srcdir)/KNOWNBUGS.rb $(MINIRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM)" $(OPTS) $(srcdir)/KNOWNBUGS.rb
@ -410,8 +410,8 @@ extconf: $(PREP)
$(MAKEDIRS) "$(EXTCONFDIR)" $(MAKEDIRS) "$(EXTCONFDIR)"
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS) $(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
$(RBCONFIG): $(srcdir)/mkconfig.rb config.status $(PREP) $(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(PREP)
@$(MINIRUBY) $(srcdir)/mkconfig.rb -timestamp=$@ \ @$(MINIRUBY) $(srcdir)/tool/mkconfig.rb -timestamp=$@ \
-install_name=$(RUBY_INSTALL_NAME) \ -install_name=$(RUBY_INSTALL_NAME) \
-so_name=$(RUBY_SO_NAME) rbconfig.rb -so_name=$(RUBY_SO_NAME) rbconfig.rb

View File

@ -1911,7 +1911,7 @@ else
MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib' MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib'
MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common -I./- -r$(srcdir)/ext/purelib.rb' MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common -I./- -r$(srcdir)/ext/purelib.rb'
PREP='miniruby$(EXEEXT)' PREP='miniruby$(EXEEXT)'
RUNRUBY='$(MINIRUBY) $(srcdir)/runruby.rb --extout=$(EXTOUT)' RUNRUBY='$(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=$(EXTOUT)'
fi fi
AC_SUBST(MINIRUBY) AC_SUBST(MINIRUBY)
AC_SUBST(PREP) AC_SUBST(PREP)

View File

@ -4,7 +4,7 @@ load "./rbconfig.rb"
include RbConfig include RbConfig
$".unshift File.expand_path("./rbconfig.rb") $".unshift File.expand_path("./rbconfig.rb")
srcdir = File.dirname(__FILE__) srcdir = File.expand_path('..', File.dirname(__FILE__))
unless defined?(CROSS_COMPILING) and CROSS_COMPILING unless defined?(CROSS_COMPILING) and CROSS_COMPILING
$:.replace([File.expand_path("lib", srcdir), Dir.pwd]) $:.replace([File.expand_path("lib", srcdir), Dir.pwd])
end end

View File

@ -4,7 +4,7 @@
$install_name ||= nil $install_name ||= nil
$so_name ||= nil $so_name ||= nil
srcdir = File.dirname(__FILE__) srcdir = File.expand_path('..', File.dirname(__FILE__))
$:.replace [srcdir+"/lib"] unless defined?(CROSS_COMPILING) $:.replace [srcdir+"/lib"] unless defined?(CROSS_COMPILING)
$:.unshift(".") $:.unshift(".")

View File

@ -15,7 +15,7 @@ end
$stderr.reopen($stdout) $stderr.reopen($stdout)
error = '' error = ''
srcdir = File.dirname(__FILE__) srcdir = File.expand_path('..', File.dirname(__FILE__))
`#{ruby} #{srcdir}/sample/test.rb`.each_line do |line| `#{ruby} #{srcdir}/sample/test.rb`.each_line do |line|
if line =~ /^end of test/ if line =~ /^end of test/
print "\ntest succeeded\n" print "\ntest succeeded\n"

View File

@ -33,7 +33,7 @@ while arg = ARGV[0]
ARGV.shift ARGV.shift
end end
srcdir ||= File.dirname(__FILE__) srcdir ||= File.expand_path('..', File.dirname(__FILE__))
archdir ||= '.' archdir ||= '.'
abs_archdir = File.expand_path(archdir) abs_archdir = File.expand_path(archdir)

View File

@ -232,7 +232,7 @@ MINIRUBY = .\miniruby$(EXEEXT) -I$(srcdir)/lib
RUNRUBY = .\$(PROGRAM) -I$(srcdir)/lib -I"$(EXTOUT)/$(arch)" RUNRUBY = .\$(PROGRAM) -I$(srcdir)/lib -I"$(EXTOUT)/$(arch)"
!endif !endif
MINIRUBY = $(MINIRUBY) $(MINIRUBYOPT) MINIRUBY = $(MINIRUBY) $(MINIRUBYOPT)
RUNRUBY = $(RUNRUBY) "$(srcdir)/runruby.rb" --extout="$(EXTOUT)" $(RUNRUBYOPT) -- RUNRUBY = $(RUNRUBY) "$(srcdir)/tool/runruby.rb" --extout="$(EXTOUT)" $(RUNRUBYOPT) --
!ifndef RUBY !ifndef RUBY
RUBY = ruby RUBY = ruby
!endif !endif