From owner-freebsd-questions Thu Dec 9 11:12:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from typhoon.mail.pipex.net (typhoon.mail.pipex.net [158.43.128.27]) by hub.freebsd.org (Postfix) with SMTP id A596514F6C for ; Thu, 9 Dec 1999 11:11:56 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 23600 invoked from network); 9 Dec 1999 18:59:03 -0000 Received: from useram61.uk.uudial.com (HELO marder-1.) (62.188.134.233) by smtp.dial.pipex.com with SMTP; 9 Dec 1999 18:59:03 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.8.8) id SAA00966; Thu, 9 Dec 1999 18:58:17 GMT (envelope-from mark) Date: Thu, 9 Dec 1999 18:58:17 +0000 From: Mark Ovens To: Sheldon Hearn Cc: Kim Buckner , freebsd-questions@freebsd.org Subject: Re: Man Pages Message-ID: <19991209185816.C322@marder-1> References: <384FBDFB.19D03C58@cs.utk.edu> <90425.944750892@axl.noc.iafrica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <90425.944750892@axl.noc.iafrica.com> Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 09, 1999 at 04:48:12PM +0200, Sheldon Hearn wrote: > > > On Thu, 09 Dec 1999 09:34:35 EST, Kim Buckner wrote: > > > I obviously missed something. I am trying to format the man pages from > > the 3.3 release and > > I don't know what macro package was used. > > Different manpages use different packages. You mentioned nroff. If > that's what you're using, I have yet to find a page that couldn't be > formatted with one of ``nroff -mdoc'' and ``nroff -man''. > > The decision can be automated with some shell scripting (although this > is sluggish): > > page=/path/to/foo.1 > if grep -Lq '^\.Nm' ${page}; then > nroff -mdoc ${page} > else > nroff -man ${page} > fi > Even easier use ``nroff -mandoc'' which chooses the correct macro (man or doc) for the input file. > That should get you going, depending on what you're actually trying to > do. :-) > > Ciao, > Sheldon. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- PERL has been described as "the duct tape of the Internet" and "the Unix Swiss Army chainsaw" - Computer Shopper 12/99 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message