1996-08-27 20:04:45 +00:00
|
|
|
.\" Copyright (c) March 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
|
|
|
|
.\" All rights reserved.
|
1995-03-15 22:47:38 +00:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
1996-08-27 20:04:45 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
1995-03-15 22:47:38 +00:00
|
|
|
.\"
|
|
|
|
.\" /usr/bin/catman - preformat man pages
|
|
|
|
.\"
|
1999-08-27 23:37:10 +00:00
|
|
|
.\" $FreeBSD$
|
1995-03-15 22:47:38 +00:00
|
|
|
.Dd Mar 12, 1995
|
|
|
|
.Dt CATMAN 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm catman
|
|
|
|
.Nd preformat man pages
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm catman
|
|
|
|
.Op Fl f | Fl force
|
1995-03-31 04:00:53 +00:00
|
|
|
.Op Fl h | Fl help
|
1995-03-15 22:47:38 +00:00
|
|
|
.Op Fl p | Fl print
|
1995-03-31 04:00:53 +00:00
|
|
|
.Op Fl r | Fl remove
|
1995-03-15 22:47:38 +00:00
|
|
|
.Op Fl v | Fl verbose
|
1995-03-27 01:52:59 +00:00
|
|
|
.Op Ar directories...
|
1995-03-15 22:47:38 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm Catman
|
1995-03-18 02:11:56 +00:00
|
|
|
format man pages to ASCII. It's like typing
|
1995-03-15 22:47:38 +00:00
|
|
|
.Sq man program
|
|
|
|
for all man pages in
|
|
|
|
.Ar directories .
|
|
|
|
.Ar Directories
|
|
|
|
is a list of man directories or subdirectories separated
|
|
|
|
by spaces or colons.
|
|
|
|
Use
|
|
|
|
.Ar /usr/share/man
|
|
|
|
if no
|
|
|
|
.Ar directories
|
|
|
|
defined.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl f , Fl force
|
|
|
|
Force overwriting old cat pages. Normally only those pages will be formatted
|
|
|
|
which are not up to date. This option is a waste of time, CPU and RAM.
|
1995-03-31 04:00:53 +00:00
|
|
|
.It Fl h , Fl help
|
|
|
|
Print options and exit.
|
1995-03-15 22:47:38 +00:00
|
|
|
.It Fl p , Fl print
|
|
|
|
Don't actually format man pages. Show what would be done.
|
1995-03-31 04:00:53 +00:00
|
|
|
.It Fl r , Fl remove
|
|
|
|
Remove garbage, e.\& g. catpage without manpage, uncompressed catpage but
|
|
|
|
a compressed catpage exist, filenames with non-alphanumeric
|
|
|
|
characters, uncompressed manpage but a compressed manpage exist.
|
|
|
|
.It Fl v , Fl verbose
|
|
|
|
More warnings.
|
1995-03-15 22:47:38 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
.Pp
|
|
|
|
.Dl $ catman
|
|
|
|
.Pp
|
|
|
|
Format man pages in
|
|
|
|
.Ar /usr/share/man
|
1997-09-13 16:01:53 +00:00
|
|
|
if necessary.
|
1995-03-15 22:47:38 +00:00
|
|
|
.Pp
|
|
|
|
.Dl $ catman $MANPATH
|
|
|
|
.Pp
|
1997-09-13 16:01:53 +00:00
|
|
|
Format all your man pages if necessary.
|
1995-03-15 22:47:38 +00:00
|
|
|
.Pp
|
1995-05-06 19:04:07 +00:00
|
|
|
.Dl $ catman -f /usr/local/man/man1 /usr/local/man/manl
|
1995-03-15 22:47:38 +00:00
|
|
|
.Pp
|
|
|
|
Force reformatting of all man pages in
|
|
|
|
.Pa /usr/local/man/man1
|
|
|
|
and
|
|
|
|
.Pa /usr/local/man/manl .
|
|
|
|
.Pp
|
|
|
|
.Dl $ catman -p /usr/X11/man
|
|
|
|
.Pp
|
|
|
|
Show only.
|
|
|
|
.Sh FILES
|
1998-02-07 05:17:47 +00:00
|
|
|
.Pa /etc/periodic/weekly/330.catman
|
1996-12-09 07:26:04 +00:00
|
|
|
Starts this program
|
1995-03-15 22:47:38 +00:00
|
|
|
.El
|
|
|
|
.Sh FEATURES
|
|
|
|
Very fast if all man pages already formatted.
|
1996-01-23 21:09:39 +00:00
|
|
|
Does not support the
|
1996-01-23 21:27:39 +00:00
|
|
|
.Fl w
|
1996-01-23 21:09:39 +00:00
|
|
|
option as some other systems do. Use
|
|
|
|
.Xr makewhatis 1
|
|
|
|
to rebuild the
|
|
|
|
.Ql whatis
|
|
|
|
database.
|
1995-03-15 22:47:38 +00:00
|
|
|
.Sh BUGS
|
|
|
|
.Xr man 1
|
|
|
|
is a setuid program. Be careful that user
|
|
|
|
.Sq man
|
|
|
|
has write permissions to the catman directories.
|
|
|
|
.Nm Catman
|
|
|
|
does not check for any
|
|
|
|
.Sq .so
|
|
|
|
in man page sources. Use hard or symlinks
|
|
|
|
to avoid redundant formatted man pages.
|
|
|
|
.Sh SEE ALSO
|
1997-01-13 00:25:51 +00:00
|
|
|
.Xr makewhatis 1 ,
|
1995-03-15 22:47:38 +00:00
|
|
|
.Xr man 1 ,
|
1997-01-13 00:25:51 +00:00
|
|
|
.Xr manpath 1
|
1995-03-15 22:47:38 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
This version of
|
|
|
|
.Nm catman
|
1996-12-09 07:26:04 +00:00
|
|
|
command appeared in
|
|
|
|
.Fx 2.1 .
|
1998-03-31 06:52:28 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Wolfram Schneider Aq wosch@FreeBSD.org ,
|
1996-08-27 20:04:45 +00:00
|
|
|
Berlin.
|