mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* mkconfig.rb: close duplicated $stdout before renaming rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5626ad6d2
commit
999971b07c
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Mar 20 22:16:25 2002 Usaku Nakamura <usa@ruby-lang.org>
|
||||
|
||||
* mkconfig.rb: close duplicated $stdout before renaming rbconfig.rb.
|
||||
|
||||
Wed Mar 20 21:54:17 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* win32/Makefile.sub: made variables configurable.
|
||||
|
|
|
@ -9,6 +9,7 @@ File.makedirs(File.dirname(rbconfig_rb), true)
|
|||
version = RUBY_VERSION
|
||||
rbconfig_rb_tmp = rbconfig_rb + '.tmp'
|
||||
config = open(rbconfig_rb_tmp, "w")
|
||||
$orgout = $stdout.dup
|
||||
$stdout.reopen(config)
|
||||
|
||||
fast = {'prefix'=>TRUE, 'ruby_install_name'=>TRUE, 'INSTALL'=>TRUE, 'EXEEXT'=>TRUE}
|
||||
|
@ -111,6 +112,8 @@ print <<EOS
|
|||
end
|
||||
end
|
||||
EOS
|
||||
$stdout.flush
|
||||
$stdout.reopen($orgout)
|
||||
config.close
|
||||
File.rename(rbconfig_rb_tmp, rbconfig_rb)
|
||||
|
||||
|
|
Loading…
Reference in a new issue