summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-15 01:02:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-15 01:02:32 +0000
commite0bcfdd9311780698cc64d57d25e71c9990d56a5 (patch)
tree4dc6bee53560c1464b1e076066c1589e8642a800
parent2de3281af4050913ae2c8e47f47c0cdb422a48d1 (diff)
make-snapshot: suppress warnings
* tool/make-snapshot: suppress warnings for uninitialized global variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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