]> Pileus Git - ~andy/fetchmail/commitdiff
Add metadata comment to generate output.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 28 Sep 1999 13:28:19 +0000 (13:28 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 28 Sep 1999 13:28:19 +0000 (13:28 -0000)
svn path=/trunk/; revision=2619

timeseries

index 4afdea1f099bc21c7a247ddc548b856c06b743bb..7a20c4c28c05056a16085c6a701fd61db5757792 100755 (executable)
@@ -5,15 +5,6 @@
 # Note: this only works if you have a news file from 5.1.1 or later --
 # I didn't patch the code sizes into NEWS until then.
 #
-# Output other than pass-through % lines is tab-separated fields.
-# Field 1: release ID
-# Field 2: count of source lines under version control 
-# Field 3: count of fetchmail-friends subscribers
-# Field 4: count of fetchmail-announce subscribers
-# Field 5: total subscribers to both lists
-# Field 6: date of release (days since first datum)
-# Field 7: date of release (RFC822 date format)
-#
 my($release, $date, $jdate);
 
 %month_offsets = (
@@ -54,9 +45,25 @@ sub day_offset
 }
 
 open(NEWS, "NEWS");
+$timestamp = `date`;
+chop $timestamp;
 $release = "unknown";
+$lines = "unknown";
 $date = "unknown";
 $jdate = "unknown";
+print <<EOF;
+# Population data from fetchmail NEWS file, as of $timestamp.
+#
+# Output other than pass-through % lines is tab-separated fields.
+# Field 1: release ID
+# Field 2: count of source lines under version control 
+# Field 3: count of fetchmail-friends subscribers
+# Field 4: count of fetchmail-announce subscribers
+# Field 5: total subscribers to both lists
+# Field 6: date of release (days since first datum)
+# Field 7: date of release (RFC822 date format)
+#
+EOF
 while ($_ = <NEWS>)
 {
     my($sum);