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
Родитель bacadbe9bf
Коммит 10840d3abb
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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)