mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/rbinstall.rb (install-man): install mdocs directly without
temporary files. [ruby-dev:41204] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
69310faab2
commit
f1307d2705
2 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri May 7 11:30:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/rbinstall.rb (install-man): install mdocs directly without
|
||||
temporary files. [ruby-dev:41204]
|
||||
|
||||
Fri May 7 09:16:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/tk/extconf.rb (get_tclConfig_dirs): glob with EXEEXT.
|
||||
|
|
|
@ -17,7 +17,6 @@ require 'fileutils'
|
|||
require 'shellwords'
|
||||
require 'optparse'
|
||||
require 'optparse/shellwords'
|
||||
require 'tempfile'
|
||||
|
||||
STDOUT.sync = true
|
||||
File.umask(0)
|
||||
|
@ -483,13 +482,11 @@ install?(:local, :comm, :man) do
|
|||
if $mantype == "doc"
|
||||
install mdoc, destfile, :mode => $data_mode
|
||||
else
|
||||
w = nil
|
||||
Tempfile.open(base) do |f|
|
||||
w = f
|
||||
open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
|
||||
class << (w = [])
|
||||
alias print push
|
||||
end
|
||||
install w.path, destfile, :mode => $data_mode
|
||||
w.close!
|
||||
open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
|
||||
open_for_install(destfile, $data_mode) {w.join("")}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue