3 # Extract information on the fetchmail project size from the NEWS file
5 # Output other than pass-through % lines is tab-separated fields.
7 # Field 2: count of source lines under version control
8 # Field 3: count of fetchmail-friends subscribers
9 # Field 4: count of fetchmail-announce subscribers
10 # Field 5: total subscribers to both lists
11 # Field 6: date of release (days since first datum)
12 # Field 7: date of release (RFC822 date format)
14 my($release, $date, $jdate);
35 my($wday, $month, $day, $time, $zone, $year) = split(' ', $datestring);
38 # We don't deal with leap years here because the baseline day is after
39 # the last leap year (1996) and there's a long time before the next
41 $jdate = ($year - 1996) * 365;
43 $jdate += $month_offsets{$month};
47 # Baseline day for the size data was Fri Oct 25 23:02:26 EDT 1996
64 elsif (/^fetchmail-([^ ]*) \(([^)]+)\)(, [0-9]* lines)?:/) {
67 $jdate = &day_offset($date);
69 $lines = substr($3, 2, length($3) - 8);
74 elsif (/There are ([0-9]*) people on fetchmail-friends and ([0-9]*) on fetchmail-announce/) {
76 print "${release}\t${lines}\t$1\t$2\t${sum}\t${jdate}\t${date}\n";
80 elsif (/There are ([0-9]*) people on the fetchmail-friends list./) {
81 print "$release\t${lines}\t$1\t0\t$1\t$jdate\t$date\n";