summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot10
1 files changed, 8 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index e3da768dbe..affc412fb7 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -49,7 +49,7 @@ if system("7z", out: IO::NULL)
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"
+ PACKAGES["zip"] = %w".zip 7z a -tzip -mx" << {out: IO::NULL}
end
end
if gzip = ENV.delete("GZIP")
@@ -392,7 +392,13 @@ update-gems:
done = system(*cmd, tarball, out: file)
else
print "creating #{mesg} archive... #{file}"
- done = system(*cmd, file, v)
+ if Hash === cmd.last
+ *cmd, opt = *cmd
+ cmd << file << v << opt
+ else
+ (cmd = cmd.dup) << file << v
+ end
+ done = system(*cmd)
end
if done
puts " done"