Date: Thu, 9 Dec 1999 18:58:17 +0000 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: Kim Buckner <buckner@cs.utk.edu>, freebsd-questions@freebsd.org Subject: Re: Man Pages Message-ID: <19991209185816.C322@marder-1> In-Reply-To: <90425.944750892@axl.noc.iafrica.com> References: <384FBDFB.19D03C58@cs.utk.edu> <90425.944750892@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991209185816.C322>
