From 57657a0b9bf558477d5e9c1a3f4a3b89cd5006d1 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 25 Feb 2012 07:08:47 +0000 Subject: suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'ext/extmk.rb') diff --git a/ext/extmk.rb b/ext/extmk.rb index 0eb9d0a10f..3b2c0c65fa 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -190,7 +190,6 @@ def extmake(target) # ignore ensure rm_f "conftest*" - config = $0 $0 = $PROGRAM_NAME end end @@ -424,7 +423,7 @@ end unless $extstatic ext_prefix = "#{$top_srcdir}/ext" exts = $static_ext.sort_by {|t, i| i}.collect {|t, i| t} withes, withouts = %w[--with --without].collect {|w| - if not (w = %w[-extensions -ext].collect {|o|arg_config(w+o)}).any? + if !(w = %w[-extensions -ext].collect {|o|arg_config(w+o)}).any? nil elsif (w = w.grep(String)).empty? proc {true} @@ -617,20 +616,20 @@ if $configure_only and $command_output end mf.puts targets = %w[all install static install-so install-rb clean distclean realclean] - targets.each do |target| - mf.puts "#{target}: $(extensions:/.=/#{target})" + targets.each do |tgt| + mf.puts "#{tgt}: $(extensions:/.=/#{tgt})" end mf.puts mf.puts "all: #{rubies.join(' ')}" mf.puts "#{rubies.join(' ')}: $(extensions:/.=/all)" - rubies.each do |target| - mf.puts "#{target}:\n\t$(Q)$(MAKE) $(MFLAGS) $@" + rubies.each do |tgt| + mf.puts "#{tgt}:\n\t$(Q)$(MAKE) $(MFLAGS) $@" end mf.puts - exec = config_string("exec") {|s| s + " "} - targets.each do |target| + exec = config_string("exec") {|str| str + " "} + targets.each do |tgt| exts.each do |d| - mf.puts "#{d[0..-2]}#{target}:\n\t$(Q)cd $(@D) && #{exec}$(MAKE) $(MFLAGS) $(@F)" + mf.puts "#{d[0..-2]}#{tgt}:\n\t$(Q)cd $(@D) && #{exec}$(MAKE) $(MFLAGS) $(@F)" end end end -- cgit v1.2.3