#! /usr/bin/perl -w # $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. ################################################## # Main Program # ################################################## open(IN, "spec.xml") || die "Can't open spec.xml\n"; open(OUT, ">exim.8" ) || die "Can't open exim.8\n"; print OUT <) { 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 (/^(?=