cocoa port rakefile only stops compile for errors

This commit is contained in:
gecko_reverse 2008-09-16 20:45:42 +00:00
parent 31b077646f
commit 5198daf33b
1 changed files with 5 additions and 2 deletions

View File

@ -97,9 +97,12 @@ task :compile do
puts indent*2 + line
end
raise StandardError, filename + ' did not compile!' unless stderr.readlines.each do |err|
error = false
stderr.readlines.each do |err|
error = true if err =~ /:\s*error\s*:/i
puts indent*2 + err
end.empty?
end
raise StandardError, "Didn't compile!" if error
end
end