From e0bcfdd9311780698cc64d57d25e71c9990d56a5 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 15 Dec 2014 01:02:32 +0000 Subject: [PATCH] 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 --- tool/make-snapshot | 8 +++++--- 1 file 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