summaryrefslogtreecommitdiffstats
path: root/llvm/utils/parseNLT.pl
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-04-27 14:57:26 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-04-27 14:57:26 +0000
commitbe6ce82937e89f9b13591d634c0884904143232c (patch)
tree5f841ab49134f2e0a32171688bbae2703e8ced6c /llvm/utils/parseNLT.pl
parentb071bef66a3a9b1f46c21bbe66dc0517331240bd (diff)
downloadbcm5719-llvm-be6ce82937e89f9b13591d634c0884904143232c.tar.gz
bcm5719-llvm-be6ce82937e89f9b13591d634c0884904143232c.zip
fix for parse, and a start at db import. Using CVS as scp :)
llvm-svn: 21591
Diffstat (limited to 'llvm/utils/parseNLT.pl')
-rw-r--r--llvm/utils/parseNLT.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/utils/parseNLT.pl b/llvm/utils/parseNLT.pl
index 3a2e82e1e02..95afca73a13 100644
--- a/llvm/utils/parseNLT.pl
+++ b/llvm/utils/parseNLT.pl
@@ -15,12 +15,14 @@ while(<>)
if (/<td>([^<]+)<\/td>/)
{
if ($prefix)
- { $output .= "$1 "; }
+ { $output .= "$1 "; $count++; }
}
if (/<tr/)
{
- if ($output)
- { print "\n$day $mon $year $prefix/$output"; $output = ""; }
+ if ($output and $count > 3)
+ { print "\n$day $mon $year $prefix/$output"; }
+ $output = "";
+ $count = 0;
}
if (/<h2>(Programs.+)<\/h2>/)
{
OpenPOWER on IntegriCloud