summaryrefslogtreecommitdiff
path: root/libexec/makewhatis
AgeCommit message (Collapse)Author
2001-04-03throw \v and \h alignments out.Marc Espie
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-10-30libexec man page fleshing. again, bored on the plane home.Aaron Campbell
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-12Trailing whitespace begone!Aaron Campbell
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-04Document new stuff...Marc Espie
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@
1999-09-20Don't install whatis.db as root:bin when uid != 0. phil@psidev.netAlex Feldman
1999-09-19When invoked without arguments, extract manpaths from /etc/man.conf.Alex Feldman
Allow multiple paths to be specified on the command line. millert@ ok
1999-07-07The proper order of the ``introductory'' macros in a man page is .Dd/.Dt/.Os.Aaron Campbell
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.
1998-12-16even more .Nm fixesAaron Campbell
1997-11-18Fix misplace '>' vs. '>>'; John.P.Darrow@wheaton.eduTodd C. Miller
1997-11-13From NetBSD:Todd C. Miller
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
1997-11-08With the new manpage, we need an obj subdir for ro /usr/src builds.Todd T. Fries
Noticed by dgregor@
1997-11-05man page from netbsdTheo de Raadt
1997-04-27COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIPTodd C. Miller
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.
1996-12-08install -> ${INSTALL}, -c -> ${COPY}Jason Downs
1996-10-01cleanup TDIR in one more caseTheo de Raadt
1996-09-15handle umask nicerTheo de Raadt
1996-09-15kill the races; found by bitbltTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt