1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb (depend_rules): need to convert /' to \' for windows

native commands.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2007-12-29 21:28:53 +00:00
parent f80bb164ce
commit 99a24e9e15
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Dec 30 06:27:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (depend_rules): need to convert `/' to `\' for windows
native commands.
Sun Dec 30 01:43:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enc/Makefile.in (DLDFLAGS): like as extensions. [ruby-core:14567]

View file

@ -1308,6 +1308,10 @@ def depend_rules(depend)
line.gsub!(/\.o\b/, ".#{$OBJEXT}")
line.gsub!(/\$\((?:hdr|top)dir\)\/config.h/, $config_h) if $config_h
line.gsub!(%r"\$\(hdrdir\)/(?!ruby(?![^:;/\s]))(?=[-\w]+\.h)", '\&ruby/')
if $nmake && /\A\s*\$\(RM|COPY\)/ =~ line
line.gsub!(%r"[-\w\./]{2,}"){$&.tr("/", "\\")}
line.gsub!(/(\$\((?!RM|COPY)[^:)]+)(?=\))/, '\1:/=\\')
end
if /(?:^|[^\\])(?:\\\\)*\\$/ =~ line
(cont ||= []) << line
next