* instruby.rb, rubytest.rb: do not depend on srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c223709c3b
commit
006e8d2e71
@ -1,3 +1,7 @@
|
|||||||
|
Thu Mar 18 19:47:44 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* instruby.rb, rubytest.rb: do not depend on srcdir.
|
||||||
|
|
||||||
Thu Mar 18 18:50:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Mar 18 18:50:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* mkconfig.rb: no longer embed srcdir and compile_dir into
|
* mkconfig.rb: no longer embed srcdir and compile_dir into
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
load "./rbconfig.rb"
|
load "./rbconfig.rb"
|
||||||
include Config
|
include Config
|
||||||
|
|
||||||
$:.unshift File.join(CONFIG["srcdir"], "lib")
|
srcdir = File.dirname(__FILE__)
|
||||||
|
$:.unshift File.join(srcdir, "lib")
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
@ -123,7 +124,7 @@ if dll == lib and dll != arc
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.chdir CONFIG["srcdir"]
|
Dir.chdir srcdir
|
||||||
|
|
||||||
ruby_shebang = File.join(CONFIG["bindir"], ruby_install_name)
|
ruby_shebang = File.join(CONFIG["bindir"], ruby_install_name)
|
||||||
if File::ALT_SEPARATOR
|
if File::ALT_SEPARATOR
|
||||||
|
@ -34,7 +34,8 @@ end
|
|||||||
$stderr.reopen($stdout)
|
$stderr.reopen($stdout)
|
||||||
error = ''
|
error = ''
|
||||||
|
|
||||||
`./#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]} -I#{CONFIG["srcdir"]}/lib #{CONFIG["srcdir"]}/sample/test.rb`.each do |line|
|
srcdir = File.dirname(__FILE__)
|
||||||
|
`./#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]} -I#{srcdir}/lib #{srcdir}/sample/test.rb`.each do |line|
|
||||||
if line =~ /^end of test/
|
if line =~ /^end of test/
|
||||||
print "test succeeded\n"
|
print "test succeeded\n"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user