#! /usr/bin/perl # vim: ts=4 sw=4 nowrap # Generate some counts for the bugreports use Getopt::Std; require scanlib; require bugcfg; use strict; use warnings; my $Version = "BugCount 1.1\nCopyright (C) Wichert Akkerman \n"; my $statusfile = "status"; sub ShowVersion() { print "$Version\n"; exit 0; } sub ShowUsage() { print <{'pending'}); $patchcount++ if ($scanlib::bugs{$nr}->{'patch'}); $ignorecount++ if ($scanlib::bugs{$nr}->{'sarge-ignore'} || $scanlib::bugs{$nr}->{'etch-ignore'}); $worrycount++ if (scanlib::check_worry($scanlib::bugs{$nr})); $stablecount++ if (scanlib::check_worry_stable($scanlib::bugs{$nr})); } } printf("%d %d %d 0 %d 0 %d %d\n", $total, $pendingcount, $patchcount, $ignorecount, $worrycount, $stablecount);