aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-12 13:20:00 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-12 13:20:00 +0000
commit0f56863ba6f462ba7606aecd24d76085b7768cfd (patch)
treee05f01e82552653c9924317dd6ebd967a7420dad
parent9a02d9780d32992ad8f92d8ebec66252091fe43c (diff)
downloadruby-0f56863ba6f462ba7606aecd24d76085b7768cfd.tar.gz
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
-rwxr-xr-xtool/make-snapshot4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 91c44bdf88..72c48add50 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -44,6 +44,10 @@ PACKAGES = {
"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")
PACKAGES["gzip"].concat(gzip.shellsplit)
end