mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
2de3281af4
commit
e0bcfdd931
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue