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:
parent
c45bf6621f
commit
325c836294
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue