forked from ruby/rake
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Makefile dependency bug. Added makefile dependency reading perf…
…ormance patch. git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@670 5af023f1-ac1a-0410-98d6-829a145c37ef
- Loading branch information
jimweirich
committed
Aug 11, 2008
1 parent
9d6c5b8
commit b90c0d0
Showing
6 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
jim@tardis.local.125 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- rake/loaders/makefile.rb.orig 2008-07-22 19:01:11.000000000 +0300 | ||
+++ rake/loaders/makefile.rb 2008-07-22 19:27:03.000000000 +0300 | ||
@@ -9,16 +9,10 @@ | ||
def load(fn) | ||
buffer = '' | ||
open(fn) do |mf| | ||
- mf.each do |line| | ||
- next if line =~ /^\s*#/ | ||
- buffer << line | ||
- if buffer =~ /\\$/ | ||
- buffer.sub!(/\\\n/, ' ') | ||
- state = :append | ||
- else | ||
- process_line(buffer) | ||
- buffer = '' | ||
- end | ||
+ lines = mf.read | ||
+ lines.gsub!(/\\\n/, ' ') | ||
+ lines.split("\n").each do |line| | ||
+ process_line line | ||
end | ||
end | ||
process_line(buffer) if buffer != '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ b: b1 b2 b3 \ | |
b4 b5 b6\ | ||
# Mid: Comment | ||
b7 | ||
a: a5 a6 a7 | ||
|
||
a : a5 a6 a7 | ||
c: c1 | ||
d: d1 d2 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters