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

ruby-changes:25369

From: nobu <ko1@a...>
Date: Fri, 2 Nov 2012 20:05:18 +0900 (JST)
Subject: [ruby-changes:25369] nobu:r37426 (trunk): mkmf.rb: timestamp_file

nobu	2012-11-02 20:02:27 +0900 (Fri, 02 Nov 2012)

  New Revision: 37426

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

  Log:
    mkmf.rb: timestamp_file
    
    * lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a
      special character of NMAKE and BSD make.  [Bug #7265]

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37425)
+++ ChangeLog	(revision 37426)
@@ -1,3 +1,8 @@
+Fri Nov  2 20:02:22 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a
+	  special character of NMAKE and BSD make.  [Bug #7265]
+
 Fri Nov  2 17:55:39 2012  Shota Fukumori  <sorah@t...>
 
 	* lib/test/unit.rb (_run_parallel): Delete status line before showing
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 37425)
+++ lib/mkmf.rb	(revision 37426)
@@ -1859,7 +1859,7 @@
   end
 
   def timestamp_file(name)
-    name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "@" : $2 ? "!" : "_"}
+    name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "@" : $2 ? ".-." : "_"}
     "./.#{name}.time"
   end
   # :startdoc:

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

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