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

make-snapshot: prefer default commands over 7z [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-06-15 02:33:56 +00:00
parent bacadbe9bf
commit 10840d3abb

View file

@ -45,8 +45,12 @@ PACKAGES = {
}
if system("7z", out: IO::NULL)
PACKAGES["gzip"] = %w".tar.gz 7z a dummy -tgzip -mx -so"
PACKAGES["zip"] = %w".zip 7z a -tzip -mx"
unless system(PACKAGES["gzip"][1..-1], in: IO::NULL, out: IO::NULL, err: :close)
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"
end
end
if gzip = ENV.delete("GZIP")
PACKAGES["gzip"].concat(gzip.shellsplit)