mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
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:
parent
837babd564
commit
ae90724357
1 changed files with 6 additions and 1 deletions
|
@ -538,8 +538,13 @@ install?(:local, :comm, :man) do
|
||||||
destname = ruby_install_name.sub(/ruby/, base.chomp(".#{section}"))
|
destname = ruby_install_name.sub(/ruby/, base.chomp(".#{section}"))
|
||||||
destfile = File.join(destdir, "#{destname}.#{section}")
|
destfile = File.join(destdir, "#{destname}.#{section}")
|
||||||
|
|
||||||
if $mantype == "doc"
|
if /\Adoc\b/ =~ $mantype
|
||||||
install mdoc, destfile, :mode => $data_mode
|
install mdoc, destfile, :mode => $data_mode
|
||||||
|
case $mantype
|
||||||
|
when /\.(?:(gz)|bz2)\z/
|
||||||
|
compress = $1 ? "gzip" : "bzip2"
|
||||||
|
system(compress, dest)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
class << (w = [])
|
class << (w = [])
|
||||||
alias print push
|
alias print push
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue