mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
370ffc6a2a
commit
8212ca438d
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Jan 13 03:07:28 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.
|
||||||
|
|
||||||
Tue Jan 13 02:54:54 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
Tue Jan 13 02:54:54 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ext/socket/extconf.rb: use headers instead of "netdb.h" in checking
|
* ext/socket/extconf.rb: use headers instead of "netdb.h" in checking
|
||||||
|
|
|
@ -430,6 +430,7 @@ install?(:local, :comm, :man) do
|
||||||
puts "installing manpages"
|
puts "installing manpages"
|
||||||
|
|
||||||
has_goruby = File.exist?(goruby_install_name+exeext)
|
has_goruby = File.exist?(goruby_install_name+exeext)
|
||||||
|
require File.join(srcdir, "tool/mdoc2man.rb") if $mantype != "doc"
|
||||||
Dir.chdir("#{srcdir}/man")
|
Dir.chdir("#{srcdir}/man")
|
||||||
for mdoc in Dir["*.[1-9]"]
|
for mdoc in Dir["*.[1-9]"]
|
||||||
next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'}
|
next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'}
|
||||||
|
@ -447,8 +448,6 @@ 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
|
||||||
require File.join(srcdir, "tool/mdoc2man.rb")
|
|
||||||
|
|
||||||
w = nil
|
w = nil
|
||||||
Tempfile.open(mdoc) do |f|
|
Tempfile.open(mdoc) do |f|
|
||||||
w = f
|
w = f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue