Skip site navigation (1)Skip section navigation (2)
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

--MfFXiAuoTsnnDAfZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 05, 2001 at 10:10:20AM +0300, Ruslan Ermilov wrote:
> The "minimal" emblem should look like this:
>=20
> Reviewed by:	groff -ww -man -mtty-char -Tascii >/dev/null
>=20
> BTW, Kris, the #3 is self-documented in bsd.man.mk as follows:
>=20
> MROFF_CMD?=3D	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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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=3D		${MANDIR:H:S/$/\/cat/}
 CATEXT=3D		.cat
 MROFF_CMD?=3D	groff -Tascii -mtty-char -man -t
+MLINT_CMD?=3D	groff -ww -man -mtty-char -Tascii=20
=20
 MCOMPRESS_CMD?=3D	${COMPRESS_CMD}
 MCOMPRESS_EXT?=3D	${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
=20
 all-man:


--MfFXiAuoTsnnDAfZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQE7leY8tNcQog5FH30RApH6AJ9Im0GkGVtOc2ybHaVkRTStNJIGvwCfT99A
gkPsydEHehx6pXPvA8mwZ9U=
=esUU
-----END PGP SIGNATURE-----

--MfFXiAuoTsnnDAfZ--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010905014549.B11407>