summaryrefslogtreecommitdiff
path: root/libexec/makewhatis
AgeCommit message (Collapse)Author
2011-03-02zap trailing whitespace;Jason McIntyre
2011-02-22shut up unless -v, and a few minor enhancements.Marc Espie
okay miod@
2011-01-26placeholder for future changes, as discussed with miod@Marc Espie
2010-10-29more nroff removal, with tweaks from (and ok) schwarze;Jason McIntyre
2010-10-25give a different error message for empty files, as they are obviously wrongMarc Espie
2010-07-13handle Tm, like in tiff2psMarc Espie
2010-07-13work around a strange problem in locality of @_ by copying stuff.Marc Espie
okay millert@
2010-07-09don't print directly, use an interface that's similar enough to pkg_addMarc Espie
print framework so that we'll be able to integrate with it better. ok millert@
2009-12-24deal with the new .Aq in perl manpages production.Marc Espie
- handle .ie, .el minimally - define \(aq as the ' symbol.
2009-10-11Support manpages with NAME written in Spanish/Italian/PortugueseStuart Henderson
ok espie@
2008-09-01Install files in the correct directory even with NOMAN set.Dale Rahn
Theo made a number of suggestions/enhancements to get to this final version.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2007-08-22err msg looks better with a \nMarc Espie
2007-05-31convert to new .Dd format;Jason McIntyre
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