#! /usr/bin/perl -w
-# $Cambridge: exim/doc/doc-docbook/x2man,v 1.1 2005/06/16 10:32:31 ph10 Exp $
+# $Cambridge: exim/doc/doc-docbook/x2man,v 1.5 2006/09/12 10:15:11 ph10 Exp $
# Script to find the command line options in the DocBook source of the Exim
# spec, and turn them into a man page, because people like that.
line options. It has been automatically generated from the reference manual
source, hopefully without too much mangling.
+.SH DEFAULT ACTION
+.rs
+.sp
+If no options are present that require a specific action (such as starting the
+daemon or a queue runner, testing an address, receiving a message in a specific
+format, or listing the queue), and there is at least one command line argument,
+then \fB-bm\fR (accept a local message on the standard input, with the
+arguments specifying the recipients) is assumed. Otherwise, Exim outputs a
+brief message about itself and exits.
+
.SH SETTING OPTIONS BY PROGRAM NAME
.rs
.TP 10
# Start of new option
- if (/^<term>$/)
+ if (/^<term>(?=<option>-)(.*?)<\/term>$/)
{
print OUT ".TP 10\n";
+ $_ = "$1\n";
$optstart = 1;
- next;
}
# If a line contains text that is not in <>, read subsequent lines of the
s/</</g;
s/>/>/g;
- s/-/-/g;
- s/ / /g;
- s/–/-/g;
+ s/ / /g;
+ s/–/-/g;
s/’/'/g;
- s/…/.../g; # Sic - no x
# Escape hyphens to prevent unwanted hyphenation