#! /usr/bin/perl -w
-# $Cambridge: exim/doc/doc-scripts/g2t,v 1.1 2004/10/07 15:04:35 ph10 Exp $
# A Perl script to turn the SGCAL source of the Exim documentation into
# Texinfo input, more or less...
# Chapter directives just require . => @; however, dequoting the
# line thereafter will remove the first @, so just force it back
-# afterwards. If the chapter is is one describing a driver, set
+# afterwards. If the chapter is one describing a driver, set
# the driver name.
if (/\.chapter/)
# "-". If we triple it in the menu it gets displayed OK, but building
# software complains about non-existent cross references etc.
- # I have gone for the horrid kludge of turning it into "-<hyhen>"
+ # I have gone for the horrid kludge of turning it into "-<hyphen>"
# in the menus and nodes.
# Exim 4 has added --help, which has the same problem.
# we sort out the menu and copy their data. This is all done in a
# subroutine that is shared with options.
- elsif (/^\.startconf/)
+ elsif (/^\.startconf\s+(.*)/)
{
+ $confuse = $1;
+ $confuse = &dequote($confuse);
handle_subsection("conf");
next;
}
$skip_else = 0;
$in_itemize = 0;
$lastwasitem = 0;
+$confuse = "";
$chapter_number = 0;
$section_number = 0;