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

ruby-changes:45312

From: nobu <ko1@a...>
Date: Fri, 20 Jan 2017 19:59:54 +0900 (JST)
Subject: [ruby-changes:45312] nobu:r57385 (trunk): extmk.rb: ignore generated sources

nobu	2017-01-20 19:59:47 +0900 (Fri, 20 Jan 2017)

  New Revision: 57385

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

  Log:
    extmk.rb: ignore generated sources
    
    * ext/extmk.rb (extract_makefile): ignore generated source files
      not to reconfigure when in-place build.

  Modified files:
    trunk/ext/extmk.rb
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 57384)
+++ ext/extmk.rb	(revision 57385)
@@ -106,7 +106,7 @@ def extract_makefile(makefile, keep = tr https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L106
   srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")].map {|fn| File.basename(fn)}.sort
   if !srcs.empty?
     old_srcs = m[/^ORIG_SRCS[ \t]*=[ \t](.*)/, 1] or return false
-    old_srcs.split.sort == srcs or return false
+    (old_srcs.split - srcs).empty? or return false
   end
   $target = target
   $extconf_h = m[/^RUBY_EXTCONF_H[ \t]*=[ \t]*(\S+)/, 1]

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

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