summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot8
1 files changed, 5 insertions, 3 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 96d836c981..c451d7eba4 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -7,10 +7,12 @@ require 'fileutils'
require 'tmpdir'
STDOUT.sync = true
-$exported = nil if $exported == ""
-$archname = nil if $archname == ""
+$exported = nil if ($exported ||= nil) == ""
+$archname = nil if ($archname ||= nil) == ""
$keep_temp ||= nil
$patch_file ||= nil
+$packages ||= nil
+$digests ||= nil
$tooldir = File.expand_path("..", __FILE__)
def usage
@@ -101,7 +103,7 @@ end
end
end
-if $help or $_help
+if defined?($help) or defined?($_help)
puts usage
exit
end