1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* mkconfig.rb: don't touch rbconfig.rb if there is a trouble.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2002-03-20 10:44:31 +00:00
parent f596cfc1d9
commit 879a5e46a5
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Mar 20 19:44:09 2002 Tanaka Akira <akr@m17n.org>
* mkconfig.rb: don't touch rbconfig.rb if there is a trouble.
Wed Mar 20 16:05:37 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (is_defined): should check receiver only once.

View file

@ -7,7 +7,8 @@ srcdir = $srcdir if $srcdir
File.makedirs(File.dirname(rbconfig_rb), true)
version = RUBY_VERSION
config = open(rbconfig_rb, "w")
rbconfig_rb_tmp = rbconfig_rb + '.tmp'
config = open(rbconfig_rb_tmp, "w")
$stdout.reopen(config)
fast = {'prefix'=>TRUE, 'ruby_install_name'=>TRUE, 'INSTALL'=>TRUE, 'EXEEXT'=>TRUE}
@ -111,5 +112,6 @@ print <<EOS
end
EOS
config.close
File.rename(rbconfig_rb_tmp, rbconfig_rb)
# vi:set sw=2: