Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / mantools / makemanidx
blob543eae5174592b6b603510535d9a4198509562e0
1 #!/bin/sh
3 cat <<EOF
4 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
5 "http://www.w3.org/TR/html4/loose.dtd">
7 <html>
9 <head>
11 <title>Postfix Manual Pages </title>
13 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
15 </head>
17 <body>
19 <h1><img src="postfix-logo.jpg" width="203" height="98" ALT="">Postfix
20 Manual Pages </h1>
22 <hr>
24 <h2> Information for new Postfix users </h2>
26 <p> New Postfix users should first look at the following introductory
27 documents. These introductions are hyperlinked to more advanced
28 documents and to UNIX-style manual pages. The UNIX-style manual
29 pages are intended for people who are already familiar with Postfix.
30 </p>
32 <ul>
34 <li> <a href="OVERVIEW.html"> Postfix architecture overview </a>
36 <li> <a href="BASIC_CONFIGURATION_README.html"> Basic configuration
37 </a>
39 <li> <a href="DEBUG_README.html"> Trouble shooting </a>
41 <li> <a href="CONTENT_INSPECTION_README.html"> Content inspection
42 overview</a>
44 <li> <a href="SMTPD_ACCESS_README.html">Relay/access control overview
45 </a>
47 <li> <a href="DATABASE_README.html"> Lookup table overview </a>
49 </ul>
51 <h2> Postfix manual page organization </h2>
53 <p> Each Postfix manual page is numbered after a section of the
54 UNIX manual: examples are mailq(1) or access(5). Unfortunately,
55 there is no single universal method to organize manual pages; each
56 UNIX flavor appears to be different. Postfix documentation assumes
57 the following convention: </p>
59 <blockquote>
61 <table cellpadding="0" cellspacing="0">
63 <tr><th> Section </th> <th> Topic </th> </tr>
65 <tr><td colspan="2"> <hr> </td> </tr>
67 <tr><td align="center"> 1 </td> <td> Commands </td> </tr>
69 <tr><td align="center"> 3 </td> <td> Library routines </td> </tr>
71 <tr><td align="center"> 5 </td> <td> File formats </td> </tr>
73 <tr><td align="center"> 8 </td> <td> Daemons </td> </tr>
75 </table>
77 </blockquote>
79 EOF
81 srctoman "$@" | awk '
83 NR == 1,/SH "*SEE ALSO"*/ { next }
85 /^Other:$/ { print ul; exit }
87 /^[A-Z].*:$/ { print ul "<h2>", $0, "</h2>\n\n<ul>\n\n"; ul = "</ul>\n\n" }
89 /^[a-z][-a-z0-9_]+\(/ { print "<li>", $0, "\n" }
91 ' | sed 's;: </h2>$; </h2>;'
93 cat <<EOF
94 </body>
96 </html>
97 EOF