check-manpages.1 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. .\" $OpenBSD: check-manpages.1,v 1.2 2013/01/11 21:08:44 rpe Exp $
  2. .\"
  3. .\" Copyright (c) 2010 Marc Espie <espie@openbsd.org>
  4. .\"
  5. .\" Permission to use, copy, modify, and distribute this software for any
  6. .\" purpose with or without fee is hereby granted, provided that the above
  7. .\" copyright notice and this permission notice appear in all copies.
  8. .\"
  9. .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. .\"
  17. .Dd $Mdocdate: January 11 2013 $
  18. .Dt CHECK-MANPAGES 1
  19. .Os
  20. .Sh NAME
  21. .Nm check-manpages
  22. .Nd verify manpage subjects in packages
  23. .Sh SYNOPSIS
  24. .Nm check-manpages
  25. .Op Fl p
  26. .Op Ar pkgname ...
  27. .Sh DESCRIPTION
  28. .Nm
  29. is used to check manpages in a collection of packages.
  30. It will extract all manpages from the
  31. .Ar pkgname
  32. arguments into a directory named
  33. .Pa manpages.XXXXXXXXXXXX
  34. .Po
  35. see
  36. .Xr mktemp 1
  37. .Pc
  38. and run them through
  39. .Xr makewhatis 8 .
  40. .Pp
  41. Note that this directory is not cleared on exit, so that the problematic
  42. manpages can be examined more precisely.
  43. .Pp
  44. If no
  45. .Ar pkgname
  46. argument is passed, it will process all
  47. .Pa *.tgz
  48. files in the current directory.
  49. .Pp
  50. Options are as follows:
  51. .Bl -tag -width packing-list
  52. .It Fl p
  53. Run
  54. .Xr makewhatis 8
  55. in picky mode.
  56. .El
  57. .Pp
  58. Errors reported in picky mode should usually be fixed, as it means the
  59. subject line stored in the whatis database will be useless to find out
  60. the corresponding manpage.