ruby-changes:37151
From: nobu <ko1@a...>
Date: Tue, 13 Jan 2015 17:22:01 +0900 (JST)
Subject: [ruby-changes:37151] nobu:r49232 (trunk): rbinstall.rb: suppress warnings
nobu 2015-01-13 17:21:44 +0900 (Tue, 13 Jan 2015) New Revision: 49232 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49232 Log: rbinstall.rb: suppress warnings * tool/rbinstall.rb (install): get rid of shadowing outer local variables. * tool/rbinstall.rb: remove unused variables. Modified files: trunk/tool/rbinstall.rb Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 49231) +++ tool/rbinstall.rb (revision 49232) @@ -158,11 +158,11 @@ def install(src, dest, options = {}) https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L158 super(src, d, options) srcs = Array(src) if strip - d = srcs.map {|src| File.join(d, File.basename(src))} if $made_dirs[dest] + d = srcs.map {|s| File.join(d, File.basename(s))} if $made_dirs[dest] strip_file(d) end if $installed_list - dest = srcs.map {|src| File.join(dest, File.basename(src))} if $made_dirs[dest] + dest = srcs.map {|s| File.join(dest, File.basename(s))} if $made_dirs[dest] $installed_list.puts dest end end @@ -324,8 +324,6 @@ enable_shared = CONFIG["ENABLE_SHARED"] https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L324 dll = CONFIG["LIBRUBY_SO", enable_shared] lib = CONFIG["LIBRUBY", true] arc = CONFIG["LIBRUBY_A", true] -major = CONFIG["MAJOR", true] -minor = CONFIG["MINOR", true] load_relative = configure_args.include?("--enable-load-relative") install?(:local, :arch, :bin, :'bin-arch') do @@ -689,7 +687,6 @@ install?(:ext, :comm, :gem) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L687 gems.sort.each do |name, specgen| gemspec = specgen.gemspec - base_dir = specgen.src.sub(/\A#{Regexp.escape(srcdir)}\//, "") full_name = "#{gemspec.name}-#{gemspec.version}" puts "#{" "*30}#{gemspec.name} #{gemspec.version}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/