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

ruby-changes:46969

From: nobu <ko1@a...>
Date: Thu, 15 Jun 2017 11:34:08 +0900 (JST)
Subject: [ruby-changes:46969] nobu:r59086 (trunk): make-snapshot: suppress output from 7z [ci skip]

nobu	2017-06-15 11:33:57 +0900 (Thu, 15 Jun 2017)

  New Revision: 59086

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

  Log:
    make-snapshot: suppress output from 7z [ci skip]

  Modified files:
    trunk/tool/make-snapshot
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 59085)
+++ tool/make-snapshot	(revision 59086)
@@ -49,7 +49,7 @@ if system("7z", out: IO::NULL) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L49
     PACKAGES["gzip"] = %w".tar.gz 7z a dummy -tgzip -mx -so"
   end
   unless system(PACKAGES["zip"][1..-1], in: IO::NULL, out: IO::NULL, err: :close)
-    PACKAGES["zip"]  = %w".zip    7z a -tzip  -mx"
+    PACKAGES["zip"]  = %w".zip    7z a -tzip  -mx" << {out: IO::NULL}
   end
 end
 if gzip = ENV.delete("GZIP")
@@ -392,7 +392,13 @@ update-gems: https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L392
       done = system(*cmd, tarball, out: file)
     else
       print "creating #{mesg} archive... #{file}"
-      done = system(*cmd, file, v)
+      if Hash === cmd.last
+        *cmd, opt = *cmd
+        cmd << file << v << opt
+      else
+        (cmd = cmd.dup) << file << v
+      end
+      done = system(*cmd)
     end
     if done
       puts " done"

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

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