rbinstall.rb: compress man pages.

* tool/rbinstall.rb (man): compress mdoc-style man pages, without
  Mdoc2Man.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-11-06 04:42:37 +00:00
parent 837babd564
commit ae90724357

View file

@ -538,8 +538,13 @@ install?(:local, :comm, :man) do
destname = ruby_install_name.sub(/ruby/, base.chomp(".#{section}"))
destfile = File.join(destdir, "#{destname}.#{section}")
if $mantype == "doc"
if /\Adoc\b/ =~ $mantype
install mdoc, destfile, :mode => $data_mode
case $mantype
when /\.(?:(gz)|bz2)\z/
compress = $1 ? "gzip" : "bzip2"
system(compress, dest)
end
else
class << (w = [])
alias print push