1#!/bin/sh 2 3postconf -d | awk ' 4 5BEGIN { 6 # Skip lines with <hN>..</hN>. 7 print "\t/<\\/*[Hh][0-9]+>/{\n\t\tp\n\t\td\n\t\t}" 8 9 # Skip lines with <a name="...">. 10 print "\t/<[Aa] [Nm][Aa][Mm][Ee]=/{\n\t\tp\n\t\td\n\t\t}" 11 12 # Skip lines with <DT> or <DT>. 13 print "\t/<[Dd][Tt]>/{\n\t\tp\n\t\td\n\t\t}" 14 15 # Skip lines with <a href="...">. 16 print "\t/<[Aa] [Hh][Rr][Ee][Ff]=/{\n\t\tp\n\t\td\n\t\t}" 17 18 # XXX debugger_command is not listed in postconf output. 19 print "\ts;[[:<:]]debugger_command[[:>:]];<a href=\"postconf.5.html#debugger_command\">debugger_command</a>;g" 20 21 } 22 23 { 24 # Do not hyperlink word(digit). 25 26 printf "\ts;[[:<:]]%s[[:>:]];<a href=\"postconf.5.html#%s\">%s</a>;g\n", 27 $1, $1, $1 28 } 29' 30