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): inserts ruby to only headers.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-12-17 16:40:22 +00:00
parent bf04c0946f
commit acaa4a431e
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Dec 18 01:40:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (depend_rules): inserts ruby to only headers.
Tue Dec 18 01:21:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_encode_length): chomp eol style modifiers.

View file

@ -1299,7 +1299,7 @@ def depend_rules(depend)
depend.each_line do |line|
line.gsub!(/\.o\b/, ".#{$OBJEXT}")
line.gsub!(/\$\((?:hdr|top)dir\)\/config.h/, $config_h) if $config_h
line.gsub!(%r"\$\(hdrdir\)/(?!ruby(?![^:;/\s]))", '\&ruby/') if /^\s*\w+\s*=/ !~ line
line.gsub!(%r"\$\(hdrdir\)/(?!ruby(?![^:;/\s]))(?=[-\w]+\.h)", '\&ruby/')
if /(?:^|[^\\])(?:\\\\)*\\$/ =~ line
(cont ||= []) << line
next