summaryrefslogtreecommitdiff
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
commit325c836294167954b51a5b52eae6da6a25a83d71 (patch)
treee05f01e82552653c9924317dd6ebd967a7420dad
parentc45bf6621f9dedbcfd8a54c205443077aa0274bd (diff)
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