3 # manlint - lint manual page 'roff source, stop list in mantools/manlint.stop
5 # example: mantools/manlint man/man?/*
7 grep -n .
"$@" |
sed -n '
9 # Non-bold manual page references
10 /[a-z][_a-z0-9_]*([0-9])/{
14 # Command examples not enclosed in quotes
15 /[^"]\\fB[a-z][_a-z0-9-]* /{
19 # Missing manual page sections
24 /\\fBbounce\\fR[^-(]/{
28 /\\fBcleanup\\fR[^-(]/{
32 /\\fBdiscard\\fR[^-(]/{
52 /\\fBmaster\\fR[^-(]/{
60 /\\fBpickup\\fR[^-(]/{
68 /\\fBpostalias\\fR[^-(]/{
72 /\\fBpostcat\\fR[^-(]/{
76 /\\fBpostconf\\fR[^-(]/{
80 /\\fBpostdrop\\fR[^-(]/{
84 /\\fBpostfix\\fR[^-(]/{
88 /\\fBpostkick\\fR[^-(]/{
92 /\\fBpostlock\\fR[^-(]/{
96 /\\fBpostlog\\fR[^-(]/{
100 /\\fBpostmap\\fR[^-(]/{
104 /\\fBpostqueue\\fR[^-(]/{
108 /\\fBpostsuper\\fR[^-(]/{
112 /\\fBproxymap\\fR[^-(]/{
120 /\\fBqmqpd\\fR[^-(]/{
124 /\\fBscache\\fR[^-(]/{
128 /\\fBsendmail\\fR[^-(]/{
132 /\\fBshowq\\fR[^-(]/{
140 /\\fBsmtpd\\fR[^-(]/{
144 /\\fBspawn\\fR[^-(]/{
148 /\\fBtlsmgr\\fR[^-(]/{
152 /\\fBtrivial-rewrite\\fR[^-(]/{
156 /\\fBverify\\fR[^-(]/{
160 /\\fBvirtual\\fR[^-(]/{
164 ' |
egrep -v ':[a-z][_a-z0-9-]*\([0-9]\),' |
165 fgrep
-vf mantools
/manlint.stop