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