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