CFLAGS = @CFLAGS@ $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
bin_PROGRAMS = innduct
-man_MANS = innduct.8
+bin_SCRIPTS = innduct-stats-report
+man_MANS = innduct.8 innduct-stats-report.8
innduct_SOURCES = duct.c conn.c filemon.c infile.c recv.c xmit.c \
cli.c defer.c help.c statemc.c __oop-read-copy.c
# Input lines look like this:
# May 23 19:00:02 chiark innduct[23236]: news.relativity.greenend.org.uk| info: completed feedfile read=76 (+bl=7,+err=0) missing=0 offered=76 (ch=76,nc=0) accepted=75 (ch=75,nc=0) unwanted=1 (id=1,bod=0,nc=0) rejected=0 (id=0,bod=0,nc=0) deferred=0 (id=0,bod=0,nc=0) missing=0 (id=0,bod=0,nc=0) connretry=0 (id=0,bod=0,nc=0)
+if (@ARGV && $ARGV[0] =~ m/^\-/) {
+ die "$0: bad usage: no options supported\n";
+}
+
while (<>) {
next unless
m/^ [:0-9A-Za-z ]+[ ]
--- /dev/null
+'\" t
+.TH INNDUCT-STATS-REPORT 8
+.SH NAME
+innduct-stats-report \- summarise transfer statistics logged by innduct
+.SH SYNOPSIS
+.B innduct-stats-report
+.RI [logfile
+.IR ...]
+.SH DESCRIPTION
+.B innduct-stats-report
+reads logfiles mentioned on its command line, or a single logfile
+stream fed on stdin, and produces a summary listing of articles logged
+by innnduct instances, one line per site.
+.SH BUGS
+How to deal with long site names should be configurable. In general
+more flexibility and functionality would be good.
+.SH HISTORY
+Written by Ian Jackson <ijackson@chiark.greenend.org.uk>
+.SH "SEE ALSO"
+innduct(8)