common/tools/raptor/preprocess_log.pl
changeset 843 c32873117195
parent 243 71d24b4fa162
equal deleted inserted replaced
842:f8c7a61e794b 843:c32873117195
    44 	}
    44 	}
    45 	elsif ($line =~ m{<archive.*?[^/]>})
    45 	elsif ($line =~ m{<archive.*?[^/]>})
    46 	{
    46 	{
    47 		$line = unterminated_archive_tag($line, scalar <>, $.)
    47 		$line = unterminated_archive_tag($line, scalar <>, $.)
    48 	}
    48 	}
       
    49 	elsif ($line =~ m{make.exe: Circular .* <- .* dependency dropped.})
       
    50 	{
       
    51 		$line = escape_left_angle_bracket($line);
       
    52 	}
    49 	
    53 	
    50 	print $line;
    54 	print $line;
    51 }
    55 }
    52 
    56 
    53 sub escape_ampersand
    57 sub escape_ampersand
    90 		warn "out: $line";
    94 		warn "out: $line";
    91 	}
    95 	}
    92 	
    96 	
    93 	return $line . $nextLine;
    97 	return $line . $nextLine;
    94 }
    98 }
       
    99 
       
   100 sub escape_left_angle_bracket
       
   101 {
       
   102 	my ($line) = @_;
       
   103 	
       
   104 	warn "escape_left_angle_bracket\n";
       
   105 	warn "in: $line";
       
   106 	
       
   107 	$line =~ s,<,&lt;,g;
       
   108 	
       
   109 	warn "out: $line";
       
   110 	return $line;
       
   111 }