mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Don't convert bundler man pages from mdoc to man
These man pages are already in man format and assuming they are mdoc format breaks things. Fixes [Bug #16823]
This commit is contained in:
parent
962c302a1a
commit
e0b40ef5d8
Notes:
git
2020-05-27 07:48:18 +09:00
1 changed files with 7 additions and 2 deletions
|
@ -632,8 +632,13 @@ install?(:local, :comm, :man) do
|
||||||
class << (w = [])
|
class << (w = [])
|
||||||
alias print push
|
alias print push
|
||||||
end
|
end
|
||||||
|
if File.basename(mdoc).start_with?('bundle') ||
|
||||||
|
File.basename(mdoc).start_with?('gemfile')
|
||||||
|
w = File.read(mdoc)
|
||||||
|
else
|
||||||
open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
|
open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
|
||||||
w = w.join("")
|
w = w.join("")
|
||||||
|
end
|
||||||
if compress
|
if compress
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
Dir.mktmpdir("man") {|d|
|
Dir.mktmpdir("man") {|d|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue