Revision
580
Author
lsansonetti@apple.com
Date
2008-09-08 14:01:28 -0700 (Mon, 08 Sep 2008)

Log Message

avoid infinite recursion

Modified Paths

Diff

Modified: MacRuby/trunk/Rakefile (579 => 580)


--- MacRuby/trunk/Rakefile	2008-09-08 19:49:12 UTC (rev 579)
+++ MacRuby/trunk/Rakefile	2008-09-08 21:01:28 UTC (rev 580)
@@ -181,7 +181,7 @@
     txt = File.read(src)
     txt.scan(/#include\s+\"([^"]+)\"/).flatten.each do |header|
       p = header_path(header)
-      if p
+      if p and !cont.include?(p)
         cont << p
         locate_headers(cont, p)
       end