Avoid an endless loop in previous, improve extraction of "known bad"

UCB 3 clause licenses.
This commit is contained in:
martin 2008-05-24 19:37:29 +00:00
parent 66009f62a3
commit afdba35c96

View File

@ -145,6 +145,7 @@ while(<>) {
print "2> $_" if $debug;
$msg="";
$msg = $_ if ($fn =~ m,$known_bad_clause_3_wording, and /``/);
$cnt=0;
$_=<F>;
while(!/$ack_endline/i) {
@ -166,8 +167,10 @@ while(<>) {
if ($fn =~ m,$known_bad_clause_3_wording,) {
while ($msg !~ /^.*``.*\n/) {
last if (!$msg);
$msg =~ s/^.*\n//o;
}
$msg =~ s/^.*``//o;
$msg =~ s/\n.*``//o;
$msg =~ s/''.*$//o;
}