mkmf.rb: timestamp_file

* lib/mkmf.rb (MakeMakefile#timestamp_file): use ! instead of %, a GNU
  make special character.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-11-01 19:41:38 +00:00
parent 27f414916e
commit 1d4ec583c7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Nov 2 04:41:33 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (MakeMakefile#timestamp_file): use ! instead of %, a GNU
make special character.
Fri Nov 2 04:40:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Nov 2 04:40:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_process.rb (test_execopts_preserve_env_on_exec_failure): * test/ruby/test_process.rb (test_execopts_preserve_env_on_exec_failure):

View File

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