ruby-changes:44987
From: naruse <ko1@a...>
Date: Mon, 12 Dec 2016 22:20:07 +0900 (JST)
Subject: [ruby-changes:44987] naruse:r57060 (trunk): Use 7z if exist
naruse 2016-12-12 22:20:00 +0900 (Mon, 12 Dec 2016) New Revision: 57060 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57060 Log: Use 7z if exist 7z can compress with higher ratio than gzip/zip. Modified files: trunk/tool/make-snapshot Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 57059) +++ tool/make-snapshot (revision 57060) @@ -44,6 +44,10 @@ PACKAGES = { https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L44 "zip" => %w".zip zip -qr", } +if system("7z", out: IO::NULL) + PACKAGES["gzip"] = %w".tar.gz 7z a -tgzip -mx" + PACKAGES["zip"] = %w".zip 7z a -tzip -mx" +end if gzip = ENV.delete("GZIP") PACKAGES["gzip"].concat(gzip.shellsplit) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/