document check-manpages

This commit is contained in:
espie 2010-10-27 09:12:30 +00:00
parent 27f392bd95
commit c1e971f7ca

View File

@ -0,0 +1,60 @@
.\" $OpenBSD: check-manpages.1,v 1.1 2010/10/27 09:12:30 espie Exp $
.\"
.\" Copyright (c) 2010 Marc Espie <espie@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: October 27 2010 $
.Dt CHECK-MANPAGES 1
.Os
.Sh NAME
.Nm check-manpages
.Nd verify manpage subjects in packages
.Sh SYNOPSIS
.Nm check-manpages
.Op Fl p
.Op Ar pkgname ...
.Sh DESCRIPTION
.Nm
is used to check manpages in a collection of packages.
It will extract all manpages from the
.Ar pkgname
arguments into a directory named
.Pa manpages.XXXXXXX
.Po
see
.Xr mktemp 1
.Pc
and run them through
.Xr makewhatis 8 .
.Pp
Note that this directory is not cleared on exit, so that the problematic
manpages can be examined more precisely.
.Pp
If no
.Ar pkgname
argument is passed, it will process all
.Pa *.tgz
files in the current directory.
.Pp
Options are as follows:
.Bl -tag -width packing-list
.It Fl p
Run
.Xr makewhatis 8
in picky mode.
.El
.Pp
Errors reported in picky mode should usually be fixed, as it means the
subject line stored in the whatis database will be useless to find out
the corresponding manpage.