зеркало из https://github.com/github/ruby.git
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:
Родитель
bacadbe9bf
Коммит
10840d3abb
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче