From 95797e13d4a32d5ec3222f223b7d4a37d24a2452 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 15 Jun 2017 02:33:57 +0000 Subject: make-snapshot: suppress output from 7z [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/make-snapshot | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/make-snapshot b/tool/make-snapshot index e3da768dbe..affc412fb7 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -49,7 +49,7 @@ if system("7z", out: IO::NULL) 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: 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" -- cgit v1.2.3