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

ruby-changes:28228

From: nobu <ko1@a...>
Date: Sat, 13 Apr 2013 23:06:44 +0900 (JST)
Subject: [ruby-changes:28228] nobu:r40280 (trunk): mkmf.rb: timestamp directory

nobu	2013-04-13 23:06:33 +0900 (Sat, 13 Apr 2013)

  New Revision: 40280

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

  Log:
    mkmf.rb: timestamp directory
    
    * lib/mkmf.rb (timestamp_file): gather timestamp files in one
      directory from each extension directories.

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40279)
+++ ChangeLog	(revision 40280)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Apr 13 23:06:20 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (timestamp_file): gather timestamp files in one
+	  directory from each extension directories.
+
 Sat Apr 13 21:09:02 2013  NAKAMURA Usaku  <usa@r...>
 
 	* lib/mkmf.rb (MakeMakefile#create_makefile): output new macro
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 40279)
+++ lib/mkmf.rb	(revision 40280)
@@ -1940,7 +1940,7 @@ preload = #{defined?($preload) && $prelo https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1940
       name = name.gsub(/\$\((#{pat.join("|")})\)/) {$&+target_prefix}
     end
     name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "" : $2 ? ".-." : "_"}
-    "./.#{name}.time"
+    "$(TIMESTAMP_DIR)/.#{name}.time"
   end
   # :startdoc:
 
@@ -2192,6 +2192,7 @@ DLLIB = #{dllib} https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2192
 EXTSTATIC = #{$static || ""}
 STATIC_LIB = #{staticlib unless $static.nil?}
 #{!$extout && defined?($installed_list) ? "INSTALLED_LIST = #{$installed_list}\n" : ""}
+TIMESTAMP_DIR = #{$extout ? '$(extout)/.timestamp' : '.'}
 " #"
     # TODO: fixme
     install_dirs.each {|d| mfile.print("%-14s= %s\n" % d) if /^[[:upper:]]/ =~ d[0]}

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

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