1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use 7z if exist

7z can compress with higher ratio than gzip/zip.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2016-12-12 13:20:00 +00:00
parent c45bf6621f
commit 325c836294

View file

@ -44,6 +44,10 @@ PACKAGES = {
"zip" => %w".zip zip -qr", "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") if gzip = ENV.delete("GZIP")
PACKAGES["gzip"].concat(gzip.shellsplit) PACKAGES["gzip"].concat(gzip.shellsplit)
end end