File: makepostconflinks

package info (click to toggle)
postfix 2.3.8-2%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 15,744 kB
  • ctags: 11,426
  • sloc: ansic: 81,810; makefile: 10,743; sh: 7,874; perl: 2,468; awk: 41
file content (29 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

postconf -d | awk '

BEGIN { 
	# Skip lines with <hN>..</hN>.
	print "\t/<\\/*[Hh][0-9]+>/{\n\t\tp\n\t\td\n\t\t}"

	# Skip lines with <a name="...">.
	print "\t/<[Aa] [Nm][Aa][Mm][Ee]=/{\n\t\tp\n\t\td\n\t\t}"

	# Skip lines with <DT> or <DT>.
	print "\t/<[Dd][Tt]>/{\n\t\tp\n\t\td\n\t\t}"

	# Skip lines with <a href="...">.
	print "\t/<[Aa] [Hh][Rr][Ee][Ff]=/{\n\t\tp\n\t\td\n\t\t}"

	# XXX debugger_command is not listed in postconf output.
	print "\ts;[[:<:]]debugger_command[[:>:]];<a href=\"postconf.5.html#debugger_command\">debugger_command</a>;g"

    }

    {
	# Do not hyperlink word(digit).

	printf "\ts;[[:<:]]%s[[:>:]];<a href=\"postconf.5.html#%s\">%s</a>;g\n",
	    $1, $1, $1
    }
'