summaryrefslogtreecommitdiff
path: root/mkconfig.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-20 13:19:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-20 13:19:36 +0000
commit999971b07c1871710064b5e4ee72cf1afca2ef55 (patch)
treea5ae3d3505604635d044f702dd728c05ffcf48e1 /mkconfig.rb
parentf5626ad6d28d050124d88f0f9c2255b1471cd63f (diff)
* 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
Diffstat (limited to 'mkconfig.rb')
-rw-r--r--mkconfig.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkconfig.rb b/mkconfig.rb
index d558583..a2db2d2 100644
--- a/mkconfig.rb
+++ b/mkconfig.rb
@@ -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)