summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-06 04:42:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-06 04:42:37 +0000
commitae907243570e85aa7b01b3428c585c2d8c5bc58a (patch)
tree30dee7f28f2e720465981b4e056f6f1fc97b7e57
parent837babd56459aafc1232a12fbfa783025d619b98 (diff)
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
-rwxr-xr-xtool/rbinstall.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 1a17f09..b14a4cd 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -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