summaryrefslogtreecommitdiff
path: root/libexec/makewhatis/makewhatis.pl
AgeCommit message (Collapse)Author
2001-03-14ad-hoc code to deal with troff hyphenation in preformatted pages.Marc Espie
2001-03-14more bizarre constructs that occur in some man pages.Marc Espie
2001-03-14Allow makewhatis -p -t filename, without full path.Marc Espie
2001-02-25oops, add missing arguments in some calls.Marc Espie
2000-12-08strip sequences of spaces AFTER stripping other weird characters.Marc Espie
2000-11-22More tweaks to recognize more weird cases:Marc Espie
- 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.
2000-11-19Handle more manpages oddities:Marc Espie
- 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.
2000-05-31Request from Theo:Marc Espie
- name tmp file after makewhatis, make it easier to track in case of trouble. - remove tmp file always, two minutes to regenerate top
2000-05-17A non existent directory should not prevent makewhatis from lookingMarc Espie
further. Noticed by Jon Ribbens <jon@oaktree.co.uk>
2000-04-29Use perl 5.6.0 features:Marc Espie
- 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.
2000-04-26Try harder to find a full subject line.Marc Espie
In pricky mode, verify the subject line: for each name, check that there indeed is a man page with the right name around.
2000-04-23With perl 5.6.0, GetOpt::Std is functional, use it.Marc Espie
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.
2000-04-12Limited EUC heuristics, should handle bold wide characters correctly,Marc Espie
and recognize `NAME' in japanese manpages.
2000-04-04Scan l and n sections as well.Marc Espie
Noticed by Hal Snyder.
2000-03-31Reformat with ts=8, after some prodding from Tom Christiansen :)Marc Espie
2000-03-31Parse nroff source directly as well, don't use getNAME which is awfulMarc Espie
at doing this.
2000-02-05Much better at handling formatted manpages.Marc Espie
- 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...
2000-02-03Switch to perl: *much* faster (about ten times), *much* more flexible,Marc Espie
simpler to understand (no more sed), and no temporary files. Some useful comment by Matt Patton. Ok'ed millert@