summaryrefslogtreecommitdiff
path: root/libexec/makewhatis
AgeCommit message (Collapse)Author
2005-03-05bit of clean-up, cosmetic, style, comments.Marc Espie
2005-01-13handleMarc Espie
.if n .if t sequences (see jadetex.1) okay jmc@
2004-12-24streamline parser loops, now we've got a simple loop with flags, insteadMarc Espie
of involved loops. Makes it MUCH easier to have uniform treatment of various constructs. okay millert@
2004-08-24synch with apropos, kill lines longer than 8192.Marc Espie
from Jared Yanovich. (pending better parser after 3.6)
2004-08-07.tbl is also a valid suffix.Marc Espie
2004-08-06not an error when merging in a directory without whatis.db.Marc Espie
2004-08-06creeping chdir. Not used at all these days, but would bug other clients,Marc Espie
such as pkg_ad....
2004-08-06Reorganize makewhatis in smaller modules.Marc Espie
Avoid pulling unneeded code: for instance, if you have only formated manpages in your system, Unformated will never be used; Check put aside and only used in -p mode. -t mode won't pull Whatis. Find; File::Compare and File::Copy and File::Temp likewise. okay millert@
2004-07-06the whatis.db database is also used by whatis(1), so note that;Jason McIntyre
add apropos(1) and whatis(1) to SEE ALSO;
2004-03-01zap extra spaces. From a PR by Jared Yanovich.Marc Espie
2004-02-11some sections came out wrong (no space) in SDL.Marc Espie
ggi has func, func2, func3 : description, give it a fighting chance.
2004-02-11more accurate .so test.Marc Espie
2004-02-10misleading regexp -> patternMarc Espie
2004-02-10harder check in picky mode: find the page AND verify it is the same.Marc Espie
Prompted by jmc@. Stop at first isolated dash in line. Handle more troff hyphenation. okay millert@, jmc@
2003-07-09-u option, remove manpages, symetrical to -d.Marc Espie
ok millert@
2003-06-02- section reorderJason McIntyre
- whitespace at EOL
2003-02-07typos;Jason McIntyre
2002-11-07Don't complain about missing man dirs unless in picky mode or ifTodd C. Miller
there is something other than a dir in the way. Closes PR 2935.
2002-10-15Use old-style version number when requiring at least perl 5.6.0.Todd C. Miller
Fixes a portability warning from perl-5.8.0; espie@ OK
2002-04-16skip over comment while parsing subject.Marc Espie
(Repair bus_space.9 parsing, not visible on formatted version)
2002-04-02A few improvements to accommodate more ports.Marc Espie
- recognize unbreakable em dashes from pod2man, - handle some user-defined font changes, - kill obvious non-subjects. ok millert@
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@