summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-22 22:26:07 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-22 22:26:07 +0900
commitb0d24e262f2ca3ba4f8d3f60248d30209b0a39a2 (patch)
tree98735f21ab18d508ffa6bed1f20ddc1247788233 /tool
parent7fe7dec7e5f7cefae986fe6475805198ec4dbada (diff)
make-snapshot: Added -no7z option
It disables 7z, which seems not to have an option to stop saving extra file attributes (uid/gid and atime), in order to make zip packages stable.
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index f5f0ed2bc4..6e9b837588 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -52,7 +52,7 @@ PACKAGES = {
"zip" => %w".zip zip -Xqr",
}
DEFAULT_PACKAGES = PACKAGES.keys - ["tar"]
-if system("7z", out: IO::NULL)
+if !$no7z and system("7z", out: IO::NULL)
PACKAGES["gzip"] = %w".tar.gz 7z a dummy -tgzip -mx -so"
PACKAGES["zip"] = %w".zip 7z a -tzip -mx" << {out: IO::NULL}
elsif gzip = ENV.delete("GZIP")