1
0
Fork 0
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:
Jeremy Evans 2020-05-26 14:00:51 -07:00 committed by Hiroshi SHIBATA
parent 962c302a1a
commit e0b40ef5d8
Notes: git 2020-05-27 07:48:18 +09:00

View file

@ -632,8 +632,13 @@ install?(:local, :comm, :man) do
class << (w = [])
alias print push
end
open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
w = w.join("")
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)}
w = w.join("")
end
if compress
require 'tmpdir'
Dir.mktmpdir("man") {|d|