[前][次][番号順一覧][スレッド一覧]

ruby-changes:40382

From: nobu <ko1@a...>
Date: Fri, 6 Nov 2015 13:42:44 +0900 (JST)
Subject: [ruby-changes:40382] nobu:r52463 (trunk): rbinstall.rb: compress man pages.

nobu	2015-11-06 13:42:37 +0900 (Fri, 06 Nov 2015)

  New Revision: 52463

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52463

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

  Modified files:
    trunk/tool/rbinstall.rb
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 52462)
+++ tool/rbinstall.rb	(revision 52463)
@@ -538,8 +538,13 @@ install?(:local, :comm, :man) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L538
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]