ruby-changes:36755
From: nobu <ko1@a...>
Date: Mon, 15 Dec 2014 10:02:48 +0900 (JST)
Subject: [ruby-changes:36755] nobu:r48836 (trunk): make-snapshot: suppress warnings
nobu 2014-12-15 10:02:32 +0900 (Mon, 15 Dec 2014) New Revision: 48836 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48836 Log: make-snapshot: suppress warnings * tool/make-snapshot: suppress warnings for uninitialized global variables. Modified files: trunk/tool/make-snapshot Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 48835) +++ tool/make-snapshot (revision 48836) @@ -7,10 +7,12 @@ require 'fileutils' https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L7 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 https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L103 end end -if $help or $_help +if defined?($help) or defined?($_help) puts usage exit end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/