Date: Wed, 5 Sep 2001 01:45:49 -0700 From: Murray Stokely <murray@FreeBSD.org> To: Ruslan Ermilov <ru@FreeBSD.org> Cc: Mike Silbersack <silby@silby.com>, Kris Kennaway <kris@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: [PATCH] make manlint (was: mutex.9 thread) Message-ID: <20010905014549.B11407@windriver.com> In-Reply-To: <20010905101020.E96906@sunbay.com>; from ru@FreeBSD.org on Wed, Sep 05, 2001 at 10:10:20AM %2B0300 References: <20010904131644.B54480@sunbay.com> <20010904231554.I7815-100000@achilles.silby.com> <20010905101020.E96906@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Sep 05, 2001 at 10:10:20AM +0300, Ruslan Ermilov wrote:
> The "minimal" emblem should look like this:
>
> Reviewed by: groff -ww -man -mtty-char -Tascii >/dev/null
>
> BTW, Kris, the #3 is self-documented in bsd.man.mk as follows:
>
> MROFF_CMD?= groff -ww -Tascii -mtty-char -man -t
How about introducing a simple "manlint" target that allows us
mortals to verify our -mdoc skills? This patch seems to work nicely :
Index: bsd.man.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.man.mk,v
retrieving revision 1.40
diff -u -r1.40 bsd.man.mk
--- bsd.man.mk 2001/07/12 07:47:39 1.40
+++ bsd.man.mk 2001/09/05 08:36:44
@@ -54,6 +54,7 @@
CATDIR= ${MANDIR:H:S/$/\/cat/}
CATEXT= .cat
MROFF_CMD?= groff -Tascii -mtty-char -man -t
+MLINT_CMD?= groff -ww -man -mtty-char -Tascii
MCOMPRESS_CMD?= ${COMPRESS_CMD}
MCOMPRESS_EXT?= ${COMPRESS_EXT}
@@ -69,6 +70,12 @@
.endif
.endfor
.endif
+
+.for target in ${MAN}
+manlint: ${target}lint
+${target}lint:
+ ${MLINT_CMD} ${.CURDIR}/${target} > /dev/null
+.endfor
all-man:
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org
iD8DBQE7leY8tNcQog5FH30RApH6AJ9Im0GkGVtOc2ybHaVkRTStNJIGvwCfT99A
gkPsydEHehx6pXPvA8mwZ9U=
=esUU
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010905014549.B11407>
