mkmf.rb: timestamp_file

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


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-11-02 11:02:27 +00:00
parent 7f6d21731c
commit e627955d14
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Nov 2 20:02:22 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@tubusu.net>
* lib/test/unit.rb (_run_parallel): Delete status line before showing

View File

@ -1859,7 +1859,7 @@ preload = #{defined?($preload) && $preload ? $preload.join(' ') : ''}
end
def timestamp_file(name)
name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "@" : $2 ? "!" : "_"}
name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "@" : $2 ? ".-." : "_"}
"./.#{name}.time"
end
# :startdoc: