X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=mop%2Feval%2Fmo-score.sh;h=b893d7623b6128c6ba557d8dbefca0b81b0c6731;hb=bf755d50d117057d2be1197341e1d91bc5f1a808;hp=9d0a200ec13f29e72669b848d1bce8ffa5dc2dad;hpb=32a38f82fff9cf1098f68a2b9ada9f9e0f98fdd6;p=moe.git diff --git a/mop/eval/mo-score.sh b/mop/eval/mo-score.sh index 9d0a200..b893d76 100755 --- a/mop/eval/mo-score.sh +++ b/mop/eval/mo-score.sh @@ -82,6 +82,8 @@ foreach $u (keys %users) { elsif ($trem =~ /^Caught fatal signal /) { $cmt = "SG"; } elsif ($trem =~ /^([A-Za-z])\S*\s+([A-Za-z])/) { ($cmt = "$1$2") =~ tr/a-z/A-Z/; + } elsif ($trem =~ /^([A-Za-z]{2})/) { + ($cmt = $1) =~ tr/a-z/A-Z/; } if (!defined $messages{$trem}) { $messages{$trem} = $cmt; @@ -185,7 +187,7 @@ while ($i < @table) { } else { ${table[$j]}[0] = $j+1 . ".-" . $i . "."; $j++; - while ($j < $i) { ${table[$j++]}[0] = ""; }; + while ($j < $i) { ${table[$j++]}[0] = " "; }; } } print STDERR "OK\n";