Add escape left angle bracket to preprocessing of raptor log (see bug #1519)
authorDario Sestito <darios@symbian.org>
Mon, 11 Jan 2010 12:27:20 +0000
changeset 843 c32873117195
parent 842 f8c7a61e794b
child 844 385ad61f2ab3
Add escape left angle bracket to preprocessing of raptor log (see bug #1519)
common/tools/raptor/preprocess_log.pl
--- a/common/tools/raptor/preprocess_log.pl	Thu Jan 07 11:47:40 2010 +0000
+++ b/common/tools/raptor/preprocess_log.pl	Mon Jan 11 12:27:20 2010 +0000
@@ -46,6 +46,10 @@
 	{
 		$line = unterminated_archive_tag($line, scalar <>, $.)
 	}
+	elsif ($line =~ m{make.exe: Circular .* <- .* dependency dropped.})
+	{
+		$line = escape_left_angle_bracket($line);
+	}
 	
 	print $line;
 }
@@ -92,3 +96,16 @@
 	
 	return $line . $nextLine;
 }
+
+sub escape_left_angle_bracket
+{
+	my ($line) = @_;
+	
+	warn "escape_left_angle_bracket\n";
+	warn "in: $line";
+	
+	$line =~ s,<,&lt;,g;
+	
+	warn "out: $line";
+	return $line;
+}