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'
|
require 'tmpdir'
|
||||||
STDOUT.sync = true
|
STDOUT.sync = true
|
||||||
|
|
||||||
$exported = nil if $exported == ""
|
$exported = nil if ($exported ||= nil) == ""
|
||||||
$archname = nil if $archname == ""
|
$archname = nil if ($archname ||= nil) == ""
|
||||||
$keep_temp ||= nil
|
$keep_temp ||= nil
|
||||||
$patch_file ||= nil
|
$patch_file ||= nil
|
||||||
|
$packages ||= nil
|
||||||
|
$digests ||= nil
|
||||||
$tooldir = File.expand_path("..", __FILE__)
|
$tooldir = File.expand_path("..", __FILE__)
|
||||||
|
|
||||||
def usage
|
def usage
|
||||||
|
@ -101,7 +103,7 @@ end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if $help or $_help
|
if defined?($help) or defined?($_help)
|
||||||
puts usage
|
puts usage
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue