ruby-changes:28142
From: nobu <ko1@a...>
Date: Tue, 9 Apr 2013 03:10:13 +0900 (JST)
Subject: [ruby-changes:28142] nobu:r40194 (trunk): mkmf.rb: timestamp directory
nobu 2013-04-09 03:10:04 +0900 (Tue, 09 Apr 2013) New Revision: 40194 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40194 Log: mkmf.rb: timestamp directory * lib/mkmf.rb (timestamp_file): gather timestamp files in one directory from each extension directories. Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 40193) +++ lib/mkmf.rb (revision 40194) @@ -1922,7 +1922,7 @@ preload = #{defined?($preload) && $prelo https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1922 def timestamp_file(name) name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "" : $2 ? ".-." : "_"} - "./.#{name}.time" + "$(TIMESTAMP_DIR)/.#{name}.time" end # :startdoc: @@ -2174,6 +2174,7 @@ DLLIB = #{dllib} https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2174 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]} @@ -2267,7 +2268,7 @@ static: $(STATIC_LIB)#{$extout ? " insta https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2268 dirs.unshift(sodir) if target and !dirs.include?(sodir) dirs.each do |d| t = timestamp_file(d) - mfile.print "#{t}:\n\t$(Q) $(MAKEDIRS) #{d}\n\t$(Q) $(TOUCH) $@\n" + mfile.print "#{t}:\n\t$(Q) $(MAKEDIRS) $(@D) #{d}\n\t$(Q) $(TOUCH) $@\n" end mfile.print <<-SITEINSTALL -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/