if (my ($title) = /^## (.*) ##$/) {
$log_class = "step";
if (my ($name, $product) = $title =~ /^Saving(?:\s+([^:]*):)?\s+(.*)$/) {
- my $href = "$product/index.html";
+ my $href = "$product/summary.html";
$href = $product if ! -e $href;
my (%p);
push (@steps, \%s);
}
} else {
- if (my ($diagnostic) = /(error|warning):/i) {
+ my $diagnostic;
+ $diagnostic = "error" if /error:/i || /FAILED/;
+ $diagnostic = "warning" if /warning:/i;
+ if ($diagnostic) {
my (%d);
- $d{DIAGNOSTIC} = lc ($diagnostic);
+ $d{DIAGNOSTIC} = $diagnostic;
$d{MESSAGE} = $_;
$d{LN} = $ln;
}
}
push (@{$steps[$#steps]{CHILDREN}}, \%d);
-
- $log_class = "$diagnostic";
}
}
printf LOG_HTML "<a name=\"%d\"><tt>%4d</tt></a> ", $ln, $ln;
}
}
-open (INDEX, '>','index.html');
+open (INDEX, '>','summary.html');
print INDEX <<EOF;
<html>