diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 12:06:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 12:06:34 +0000 |
commit | 5e61585d76ae77fd5e9e96ebabb57afa4d74880d (patch) | |
tree | 2b467823aaeebc7ef8bc9e3cabe8074eaef1666d /mantools/manlint | |
parent | Initial commit. (diff) | |
download | postfix-5e61585d76ae77fd5e9e96ebabb57afa4d74880d.tar.xz postfix-5e61585d76ae77fd5e9e96ebabb57afa4d74880d.zip |
Adding upstream version 3.5.24.upstream/3.5.24
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | mantools/manlint | 165 | ||||
-rw-r--r-- | mantools/manlint.stop | 113 |
2 files changed, 278 insertions, 0 deletions
diff --git a/mantools/manlint b/mantools/manlint new file mode 100755 index 0000000..8927d89 --- /dev/null +++ b/mantools/manlint @@ -0,0 +1,165 @@ +#!/bin/sh + +# manlint - lint manual page 'roff source, stop list in mantools/manlint.stop + +# example: mantools/manlint man/man?/* + +grep -n . "$@" | sed -n ' + s/$/ / + # Non-bold manual page references + /[a-z][_a-z0-9_]*([0-9])/{ + p + d + } + # Command examples not enclosed in quotes + /[^"]\\fB[a-z][_a-z0-9-]* /{ + p + d + } + # Missing manual page sections + /\\fBanvil\\fR[^-(]/{ + p + d + } + /\\fBbounce\\fR[^-(]/{ + p + d + } + /\\fBcleanup\\fR[^-(]/{ + p + d + } + /\\fBdiscard\\fR[^-(]/{ + p + d + } + /\\fBerror\\fR[^-(]/{ + p + d + } + /\\fBflush\\fR[^-(]/{ + p + d + } + /\\fBlmtp\\fR[^-(]/{ + p + d + } + /\\fBlocal\\fR[^-(]/{ + p + d + } + /\\fBmaster\\fR[^-(]/{ + p + d + } + /\\fBoqmgr\\fR[^-(]/{ + p + d + } + /\\fBpickup\\fR[^-(]/{ + p + d + } + /\\fBpipe\\fR[^-(]/{ + p + d + } + /\\fBpostalias\\fR[^-(]/{ + p + d + } + /\\fBpostcat\\fR[^-(]/{ + p + d + } + /\\fBpostconf\\fR[^-(]/{ + p + d + } + /\\fBpostdrop\\fR[^-(]/{ + p + d + } + /\\fBpostfix\\fR[^-(]/{ + p + d + } + /\\fBpostkick\\fR[^-(]/{ + p + d + } + /\\fBpostlock\\fR[^-(]/{ + p + d + } + /\\fBpostlog\\fR[^-(]/{ + p + d + } + /\\fBpostmap\\fR[^-(]/{ + p + d + } + /\\fBpostqueue\\fR[^-(]/{ + p + d + } + /\\fBpostsuper\\fR[^-(]/{ + p + d + } + /\\fBproxymap\\fR[^-(]/{ + p + d + } + /\\fBqmgr\\fR[^-(]/{ + p + d + } + /\\fBqmqpd\\fR[^-(]/{ + p + d + } + /\\fBscache\\fR[^-(]/{ + p + d + } + /\\fBsendmail\\fR[^-(]/{ + p + d + } + /\\fBshowq\\fR[^-(]/{ + p + d + } + /\\fBsmtp\\fR[^-(]/{ + p + d + } + /\\fBsmtpd\\fR[^-(]/{ + p + d + } + /\\fBspawn\\fR[^-(]/{ + p + d + } + /\\fBtlsmgr\\fR[^-(]/{ + p + d + } + /\\fBtrivial-rewrite\\fR[^-(]/{ + p + d + } + /\\fBverify\\fR[^-(]/{ + p + d + } + /\\fBvirtual\\fR[^-(]/{ + p + d + } +' | egrep -v ':[a-z][_a-z0-9-]*\([0-9]\),' | + fgrep -vf mantools/manlint.stop diff --git a/mantools/manlint.stop b/mantools/manlint.stop new file mode 100644 index 0000000..5ff67a6 --- /dev/null +++ b/mantools/manlint.stop @@ -0,0 +1,113 @@ +man/man1/postmap.1:23:\fBmakemap \fIfile_type\fR \fIfile_name\fR < \fIfile_name\fR +man/man1/sendmail.1:14:\fBsendmail -bp\fR +man/man1/sendmail.1:17:\fBsendmail -I\fR +man/man5/access.5:11:\fBpostmap /etc/postfix/access\fR +man/man5/access.5:13:\fBpostmap -q "\fIstring\fB" /etc/postfix/access\fR +man/man5/access.5:15:\fBpostmap -q - /etc/postfix/access <\fIinputfile\fR +man/man5/canonical.5:11:\fBpostmap /etc/postfix/canonical\fR +man/man5/canonical.5:13:\fBpostmap -q "\fIstring\fB" /etc/postfix/canonical\fR +man/man5/canonical.5:15:\fBpostmap -q - /etc/postfix/canonical <\fIinputfile\fR +man/man5/cidr_table.5:11:\fBpostmap -q "\fIstring\fB" cidr:/etc/postfix/\fIfilename\fR +man/man5/cidr_table.5:13:\fBpostmap -q - cidr:/etc/postfix/\fIfilename\fR <\fIinputfile\fR +man/man5/header_checks.5:11:\fBheader_checks = pcre:/etc/postfix/header_checks\fR +man/man5/header_checks.5:13:\fBmime_header_checks = pcre:/etc/postfix/mime_header_checks\fR +man/man5/header_checks.5:15:\fBnested_header_checks = pcre:/etc/postfix/nested_header_checks\fR +man/man5/header_checks.5:17:\fBbody_checks = pcre:/etc/postfix/body_checks\fR +man/man5/header_checks.5:19:\fBpostmap -fq "\fIstring\fB" pcre:/etc/postfix/\fIfilename\fR +man/man5/header_checks.5:21:\fBpostmap -fq - pcre:/etc/postfix/\fIfilename\fR <\fIinputfile\fR +man/man5/ldap_table.5:11:\fBpostmap -q "\fIstring\fB" ldap:/etc/postfix/filename\fR +man/man5/ldap_table.5:13:\fBpostmap -q - ldap:/etc/postfix/\fIfilename\fR <\fIinputfile\fR +man/man5/mysql_table.5:11:\fBpostmap -q "\fIstring\fB" mysql:/etc/postfix/filename\fR +man/man5/mysql_table.5:13:\fBpostmap -q - mysql:/etc/postfix/\fIfilename\fR <\fIinputfile\fR +man/man5/nisplus_table.5:11:\fBpostmap -q "\fIstring\fB" "nisplus:[\fIname\fB=%s];\fIname.name.\fB"\fR +man/man5/nisplus_table.5:13:\fBpostmap -q - "nisplus:[\fIname\fB=%s];\fIname.name.\fB"\fR <\fIinputfile\fR +man/man5/pcre_table.5:11:\fBpostmap -fq "\fIstring\fB" pcre:/etc/postfix/\fIfilename\fR +man/man5/pcre_table.5:13:\fBpostmap -fq - pcre:/etc/postfix/\fIfilename\fR <\fIinputfile\fR +man/man5/pgsql_table.5:11:\fBpostmap -q "\fIstring\fB" pgsql:/etc/postfix/filename\fR +man/man5/pgsql_table.5:13:\fBpostmap -q - pgsql:/etc/postfix/\fIfilename\fR <\fIinputfile\fR +man/man5/postconf.5:11:\fBpostconf -e\fR "\fIparameter=value\fR" ... +man/man5/regexp_table.5:11:\fBpostmap -fq "\fIstring\fB" regexp:/etc/postfix/\fIfilename\fR +man/man5/regexp_table.5:13:\fBpostmap -fq - regexp:/etc/postfix/\fIfilename\fR <\fIinputfile\fR +man/man5/relocated.5:11:\fBpostmap /etc/postfix/relocated\fR +man/man5/tcp_table.5:11:\fBpostmap -q "\fIstring\fB" tcp:\fIhost:port\fR +man/man5/tcp_table.5:13:\fBpostmap -q - tcp:\fIhost:port\fR <\fIinputfile\fR +man/man5/transport.5:11:\fBpostmap /etc/postfix/transport\fR +man/man5/transport.5:13:\fBpostmap -q "\fIstring\fB" /etc/postfix/transport\fR +man/man5/transport.5:15:\fBpostmap -q - /etc/postfix/transport <\fIinputfile\fR +man/man5/virtual.5:11:\fBpostmap /etc/postfix/virtual\fR +man/man5/virtual.5:13:\fBpostmap -q "\fIstring\fB" /etc/postfix/virtual\fR +man/man5/virtual.5:15:\fBpostmap -q - /etc/postfix/virtual <\fIinputfile\fR +man/man8/cleanup.8:64:Table-driven rewriting rules make it hard to express \fBif then +man/man8/lmtp.8:144:.IP "\fItransport_\fBdestination_concurrency_limit ($default_destination_concurrency_limit)\fR" +man/man8/lmtp.8:147:.IP "\fItransport_\fBdestination_recipient_limit ($default_destination_recipient_limit)\fR" +man/man1/postalias.1:12:\fBpostalias\fR [\fB-Nfinoprsvw\fR] [\fB-c \fIconfig_dir\fR] +man/man1/postcat.1:11:\fBpostcat\fR [\fB-oqv\fR] [\fB-c \fIconfig_dir\fR] [\fIfiles\fR...] +man/man1/postconf.1:12:\fBpostconf\fR [\fB-dhmlnv\fR] [\fB-c \fIconfig_dir\fR] +man/man1/postconf.1:15:\fBpostconf\fR [\fB-ev\fR] [\fB-c \fIconfig_dir\fR] +man/man1/postdrop.1:11:\fBpostdrop\fR [\fB-rv\fR] [\fB-c \fIconfig_dir\fR] +man/man1/postfix.1:12:\fBpostfix\fR [\fB-Dv\fR] [\fB-c \fIconfig_dir\fR] \fIcommand\fR +man/man1/postkick.1:12:\fBpostkick\fR [\fB-c \fIconfig_dir\fR] [\fB-v\fR] +man/man1/postlock.1:12:\fBpostlock\fR [\fB-c \fIconfig_dir\fB] [\fB-l \fIlock_style\fB] +man/man1/postlog.1:12:\fBpostlog\fR [\fB-iv\fR] [\fB-c \fIconfig_dir\fR] +man/man1/postlog.1:36:\fBerror\fR, \fBfatal\fR, or \fBpanic\fR. +man/man1/postmap.1:12:\fBpostmap\fR [\fB-Nfinoprsvw\fR] [\fB-c \fIconfig_dir\fR] +man/man1/postqueue.1:11:\fBpostqueue\fR [\fB-c \fIconfig_dir\fR] \fB-f\fR +man/man1/postqueue.1:13:\fBpostqueue\fR [\fB-c \fIconfig_dir\fR] \fB-p\fR +man/man1/postqueue.1:15:\fBpostqueue\fR [\fB-c \fIconfig_dir\fR] \fB-s \fIsite\fR +man/man1/postsuper.1:12:\fBpostsuper\fR [\fB-psv\fR] +man/man1/postsuper.1:28:\fBdeferred\fR directories with mail files and the \fBbounce\fR, +man/man1/postsuper.1:29:\fBdefer\fR, \fBtrace\fR and \fBflush\fR directories with log files. +man/man1/qshape.1:24:\fBpostfix\fR). +man/man1/sendmail.1:11:\fBsendmail\fR [\fIoption ...\fR] [\fIrecipient ...\fR] +man/man1/smtp-source.1:79:port is \fBsmtp\fR. +man/man5/postconf.5:9:\fBpostconf\fR \fIparameter\fR ... +man/man5/postconf.5:2438:Specify zero or more of \fBcanonical\fR, \fBvirtual\fR, \fBalias\fR, +man/man5/postconf.5:2444:and \fBvirtual\fR is likely to cause problems when mail is forwarded +man/man5/postconf.5:4562:is \fBsmtpd\fR, corresponding to a SASL configuration file named +man/man5/transport.5:117:such as \fBsmtp\fR or \fBlocal\fR. The \fInexthop\fR field +man/man5/virtual.5:223:Specify zero or more of \fBcanonical\fR, \fBvirtual\fR, \fBalias\fR, +man/man8/anvil.8:11:\fBanvil\fR [generic Postfix daemon options] +man/man8/bounce.8:11:\fBbounce\fR [generic Postfix daemon options] +man/man8/cleanup.8:11:\fBcleanup\fR [generic Postfix daemon options] +man/man8/discard.8:11:\fBdiscard\fR [generic Postfix daemon options] +man/man8/error.8:11:\fBerror\fR [generic Postfix daemon options] +man/man8/flush.8:11:\fBflush\fR [generic Postfix daemon options] +man/man8/lmtp.8:11:\fBlmtp\fR [generic Postfix daemon options] +man/man8/lmtp.8:38:\fBlmtp\fR in \fBservices\fR(4). +man/man8/local.8:11:\fBlocal\fR [generic Postfix daemon options] +man/man8/local.8:33:\fBsendmail\fR-style alias databases. +man/man8/local.8:34:Users can have \fBsendmail\fR-style ~/.\fBforward\fR files. +man/man8/master.8:11:\fBmaster\fR [\fB-Dtv\fR] [\fB-c \fIconfig_dir\fR] [\fB-e \fIexit_time\fR] +man/man8/oqmgr.8:11:\fBoqmgr\fR [generic Postfix daemon options] +man/man8/pickup.8:11:\fBpickup\fR [generic Postfix daemon options] +man/man8/pipe.8:11:\fBpipe\fR [generic Postfix daemon options] command_attributes... +man/man8/proxymap.8:11:\fBproxymap\fR [generic Postfix daemon options] +man/man8/qmgr.8:11:\fBqmgr\fR [generic Postfix daemon options] +man/man8/qmqpd.8:11:\fBqmqpd\fR [generic Postfix daemon options] +man/man8/scache.8:11:\fBscache\fR [generic Postfix daemon options] +man/man8/showq.8:11:\fBshowq\fR [generic Postfix daemon options] +man/man8/smtp.8:11:\fBsmtp\fR [generic Postfix daemon options] +man/man8/smtpd.8:11:\fBsmtpd\fR [generic Postfix daemon options] +man/man8/spawn.8:11:\fBspawn\fR [generic Postfix daemon options] command_attributes... +man/man8/tlsmgr.8:11:\fBtlsmgr\fR [generic Postfix daemon options] +man/man8/trivial-rewrite.8:11:\fBtrivial-rewrite\fR [generic Postfix daemon options] +man/man8/trivial-rewrite.8:31:the \fBlocal\fR address rewriting context. This prevents +man/man8/verify.8:11:\fBverify\fR [generic Postfix daemon options] +man/man8/virtual.8:11:\fBvirtual\fR [generic Postfix daemon options] +man/man5/aliases.5:140:\fBvirtual\fR, \fBalias\fR, \fBforward\fR, or \fBinclude\fR. +man/man5/canonical.5:170:Specify zero or more of \fBcanonical\fR, \fBvirtual\fR, \fBalias\fR, +man/man8/bounce.8:19:\fBbounce\fR, \fBdefer\fR or \fBtrace\fR). +man/man1/postfix.1:80:.IP "\fB-D\fR (with \fBpostfix start\fR only)" +man/man5/postconf.5:2340:.IP "\fBbounce\fR (also implies \fB2bounce\fR)" +man/man1/postfix.1:44:.IP \fBflush\fR +man/man8/oqmgr.8:55:.IP \fBbounce\fR +man/man8/qmgr.8:55:.IP \fBbounce\fR +man/man8/trivial-rewrite.8:21:.IP \fBlocal\fR +man/man5/aliases.5:140:\fBvirtual\fR, \fBalias\fR, \fBforward\fR, \fBinclude\fR, +man/man5/canonical.5:171:Specify zero or more of \fBcanonical\fR, \fBvirtual\fR, \fBalias\fR, +man/man5/generic.5:11:\fBpostmap /etc/postfix/generic\fR +man/man5/generic.5:13:\fBpostmap -q "\fIstring\fB" /etc/postfix/generic\fR +man/man5/generic.5:15:\fBpostmap -q - /etc/postfix/generic <\fIinputfile\fR +man/man5/generic.5:189:Specify zero or more of \fBcanonical\fR, \fBvirtual\fR, \fBalias\fR, +man/man5/postconf.5:2446:and \fBvirtual\fR is likely to cause problems when mail is forwarded +man/man5/postconf.5:4575:is \fBsmtpd\fR, corresponding to a SASL configuration file named |