From owner-cvs-all Wed Sep 5 1:40:21 2001 Delivered-To: cvs-all@freebsd.org Received: from mao.stokely.org (mao.stokely.org [65.84.64.228]) by hub.freebsd.org (Postfix) with ESMTP id DED6E37B403; Wed, 5 Sep 2001 01:40:13 -0700 (PDT) Received: by mao.stokely.org (Postfix, from userid 2074) id 24E854B65E; Wed, 5 Sep 2001 01:45:49 -0700 (PDT) Date: Wed, 5 Sep 2001 01:45:49 -0700 From: Murray Stokely To: Ruslan Ermilov Cc: Mike Silbersack , Kris Kennaway , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: [PATCH] make manlint (was: mutex.9 thread) Message-ID: <20010905014549.B11407@windriver.com> References: <20010904131644.B54480@sunbay.com> <20010904231554.I7815-100000@achilles.silby.com> <20010905101020.E96906@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="MfFXiAuoTsnnDAfZ" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010905101020.E96906@sunbay.com>; from ru@FreeBSD.org on Wed, Sep 05, 2001 at 10:10:20AM +0300 X-GPG-Key-ID: 1024D/0E451F7D X-GPG-Key-Fingerprint: E2CA 411D DD44 53FD BB4B 3CB5 B4D7 10A2 0E45 1F7D Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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