[前][次][番号順一覧][スレッド一覧]

ruby-changes:17992

From: naruse <ko1@a...>
Date: Thu, 2 Dec 2010 10:46:48 +0900 (JST)
Subject: [ruby-changes:17992] Ruby:r30013 (trunk): * ext/extmk.rb: remove $makeflags.defined?, it should be $mflags.

naruse	2010-12-02 10:46:42 +0900 (Thu, 02 Dec 2010)

  New Revision: 30013

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30013

  Log:
    * ext/extmk.rb: remove $makeflags.defined?, it should be $mflags.

  Modified files:
    trunk/ChangeLog
    trunk/ext/extmk.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30012)
+++ ChangeLog	(revision 30013)
@@ -1,3 +1,7 @@
+Thu Dec  2 10:38:40 2010  NARUSE, Yui  <naruse@r...>
+
+	* ext/extmk.rb: remove $makeflags.defined?, it should be $mflags.
+
 Thu Dec  2 10:19:47 2010  NAKAMURA Usaku  <usa@r...>
 
 	* win32/Makefile.sub (rc): suppress meaningless message.
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 30012)
+++ ext/extmk.rb	(revision 30013)
@@ -63,7 +63,7 @@
         config = CONFIG.dup
         install_dirs(target_prefix).each {|var, val| config[var] = val}
         FileUtils.rm_f(installrb.values.collect {|f| RbConfig.expand(f, config)},
-                       :verbose => $makeflags.defined?("Q") != "@")
+                       :verbose => $mflags.defined?("Q") != "@")
       end
     end
     return false
@@ -239,7 +239,7 @@
 
 def parse_args()
   $mflags = []
-  $makeflags = []
+  $makeflags = [] # for make command to build ruby, so quoted
 
   $optparser ||= OptionParser.new do |opts|
     opts.on('-n') {$dryrun = true}
@@ -299,10 +299,6 @@
     grep(/\A#{var}=(.*)/) {return $1}
     false
   end
-  def $makeflags.defined?(var)
-    grep(/\A#{var}=(.*)/) {return $1}
-    false
-  end
 
   if $mflags.set?(?n)
     $dryrun = true

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]