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 fetchmail-friends subscribers
8 # Field 3: count of fetchmail-announce subscribers
9 # Field 4: total subscribers to both lists
10 # Field 5: date of release (days since first datum)
11 # Field 6: date of release (RFC822 date format)
13 my($release, $date, $jdate);
34 my($wday, $month, $day, $time, $zone, $year) = split(' ', $datestring);
37 # We don't deal with leap years here because the baseline day is after
38 # the last leap year (1996) and there's a long time before the next
40 $jdate = ($year - 1996) * 365;
42 $jdate += $month_offsets{$month};
46 # Baseline day for the size data was Fri Oct 25 23:02:26 EDT 1996
63 elsif (/^fetchmail-([^ ]*) \(([^)]*)\):?/) {
66 $jdate = &day_offset($date);
68 elsif (/There are ([0-9]*) people on fetchmail-friends and ([0-9]*) on fetchmail-announce/) {
70 print "${release}\t$1\t$2\t${sum}\t${jdate}\t${date}\n";
74 elsif (/There are ([0-9]*) people on the fetchmail-friends list./) {
75 print "$release\t$1\t0\t$1\t$jdate\t$date\n";