diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-01 19:41:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-01 19:41:38 +0000 |
commit | 1d4ec583c7a0b83c153cab34a2b6865db7ea0619 (patch) | |
tree | 00d3594941a65ac991949e04e96c3da1be4a7f6e | |
parent | 27f414916e2f65291d162a3c02407c595dd86400 (diff) | |
download | ruby-1d4ec583c7a0b83c153cab34a2b6865db7ea0619.tar.gz |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/mkmf.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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> * test/ruby/test_process.rb (test_execopts_preserve_env_on_exec_failure): diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 62b3c5f3f6..84d736dac0 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -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: |