#! /usr/bin/perl -w # 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. open(IN, "spec.xml") || die "Can't open spec.xml\n"; open(OUT, ">exim.8" ) || die "Can't open exim.8\n"; print OUT < CTRL-D .sp The \\fB-i\\fP option prevents a line containing just a dot from terminating the message. Only an end-of-file (generated by typing CTRL-D if the input is from a terminal) does so. . .SH "SETTING OPTIONS BY PROGRAM NAME" .rs .sp If an Exim binary is called using one of the names listed in this section (typically via a symbolic link), certain options are assumed. .TP \\fBmailq\\fR Behave as if the option \\fB\\-bp\\fP were present before any other options. The \\fB\\-bp\\fP option requests a listing of the contents of the mail queue on the standard output. .TP \\fBrsmtp\\fR Behaves as if the option \\fB\\-bS\\fP were present before any other options, for compatibility with Smail. The \\fB\\-bS\\fP option is used for reading in a number of messages in batched SMTP format. .TP \\fBrmail\\fR Behave as if the \\fB\\-i\\fP and \\fB\\-oee\\fP options were present before any other options, for compatibility with Smail. The name \\fBrmail\\fR is used as an interface by some UUCP systems. The \\fB\\-i\\fP option specifies that a dot on a line by itself does not terminate a non\\-SMTP message; \\fB\\-oee\\fP requests that errors detected in non\\-SMTP messages be reported by emailing the sender. .TP \\fBrunq\\fR Behave as if the option \\fB\\-q\\fP were present before any other options, for compatibility with Smail. The \\fB\\-q\\fP option causes a single queue runner process to be started. It processes the queue once, then exits. .TP \\fBnewaliases\\fR Behave as if the option \\fB\\-bi\\fP were present before any other options, for compatibility with Sendmail. This option is used for rebuilding Sendmail's alias file. Exim does not have the concept of a single alias file, but can be configured to run a specified command if called with the \\fB\\-bi\\fP option. . .SH "OPTIONS" .rs End while () { last if /^\s*$/; } die "Can't find start of options\n" if ! defined $_; $optstart = 0; $indent = ""; # Loop for each individual option $next = ; while ($next) { $_ = $next; $next = ; last if /^\s*$/; # Start of new option if (/^(?=