Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
- handle \s+n as well as \s-n,
- be smarter in finding name - subject delimitation in the presence of
multiple dashes, always prefer a dash with intervening spaces if one is
available,
- handle spaces in macros everywhere,
- recognize \(tm,
- recognize .SM as a font change,
- recognize .LP as another multiple subject separator,
- strip indexing facilities .iX and .XX,
- complain about unknown macros in picky mode, strip them anyways.
|
|
- recognizes \s<number> sequences (horizontal kerning) and removes them.
- escaped |
- parses .ds definitions, expands \*(ab and \*[abc...]
(missing built-ins, such as en and em).
- strips .HP, .VB
- recognizes .Pp
- handles some . ds (space in between).
This fixes over 99% of all manpages generated from the ports tree.
This is still missing a few cleanups and some regression testing.
|
|
|
|
- name tmp file after makewhatis, make it easier to track in case of
trouble.
- remove tmp file always, two minutes to regenerate top
|
|
further. Noticed by Jon Ribbens <jon@oaktree.co.uk>
|
|
- don't use IO::File, autovivify handles instead,
- use open 3 args mode for security,
- pipe return code is now useful, so use it.
Don't install the whatis.db file directly, instead put it in a tmp location,
and copy it only if it changed: this avoids spurious errors on ro /usr.
|
|
In pricky mode, verify the subject line: for each name,
check that there indeed is a man page with the right name around.
|
|
Add -p (prick) and -t (test) option.
reword error handling as follows:
makewhatis tries harder to find section and/or subject lines in man pages,
even when the formatting is slightly incorrect.
-p mode diagnoses problems.
-t can be used to quickly test a new man page.
Approved by millert@. aaron@ would like `The options are as follows...'
style, but:
- I don't think this would be as clear,
- he hasn't come up with actual replacement text yet...
At least this is accurate documentation.
|
|
|
|
and recognize `NAME' in japanese manpages.
|
|
Noticed by Hal Snyder.
|
|
|
|
at doing this.
|
|
- remove all boldface c^Hc -> c,
- handle `multiple subjets' manpages correctly (e.g. perl),
- warns about stuff that ought to be manpages, but isn't proper
(ffs_softupdates and safe_finger are missing subject lines, BTW).
So, all the perl documentation is finally grokked correctly.
Todd's baby is missing quite a few manpages links...
|
|
|
|
simpler to understand (no more sed), and no temporary files.
Some useful comment by Matt Patton.
Ok'ed millert@
|
|
|
|
Allow multiple paths to be specified on the command line. millert@ ok
|
|
Out of the approximately 1450 man pages, only about 90 of them were wrong.
Thanks to kwesterback@home.com for coming up with a script and patch to repair
this. The patch also inserted a .Os macro in the few man pages that were
missing one.
|
|
|
|
|
|
makewhatis.sh rewrite by mrg@netbsd.org that uses getNAME(8).
Much faster for unformatted man pages now that there is no need
to format them on the fly. Removes duplicate inode entries, so
files with multiple hard links are only parsed once.
OpenBSD changes:
set $PATH to a reasonable value
avoid /tmp races via mktemp(1)
obey $TMPDIR
|
|
Noticed by dgregor@
|
|
|
|
This fixes namespace problems where STRIP is sometimes used as
the name of the strip(1) to use and other times used as
the flag to send install(1) when stripping (or not).
COPY doesn't have this problem (yet) but was poorly named.
|
|
|
|
|
|
|
|
|
|
|