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

ruby-changes:39676

From: nobu <ko1@a...>
Date: Fri, 4 Sep 2015 12:54:54 +0900 (JST)
Subject: [ruby-changes:39676] nobu:r51757 (trunk): mkmf.rb: remove unnecessary variables

nobu	2015-09-04 12:54:29 +0900 (Fri, 04 Sep 2015)

  New Revision: 51757

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

  Log:
    mkmf.rb: remove unnecessary variables
    
    * lib/mkmf.rb (configuration): remove unnecessary variables,
      top_srcdir is defined above, builddir is not used.

  Modified files:
    trunk/lib/mkmf.rb
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 51756)
+++ lib/mkmf.rb	(revision 51757)
@@ -1923,9 +1923,9 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARA https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1923
     end
     CONFIG.each do |key, var|
       next if /^abs_/ =~ key
-      next if /^(?:src|top|hdr)dir$/ =~ key
+      next if /^(?:src|top(?:_src)?|build|hdr)dir$/ =~ key
       next unless /dir$/ =~ key
-      mk << "#{key} = #{/^(?:top_src|build)dir$/ =~ key ? var : with_destdir(var)}\n"
+      mk << "#{key} = #{with_destdir(var)}\n"
     end
     if !$extmk and !$configure_args.has_key?('--ruby') and
         sep = config_string('BUILD_FILE_SEPARATOR')

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

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