aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandocdb.8
Commit message (Collapse)AuthorAgeFilesLines
* minor sync with HEAD, but keep the Berkeley DB partsIngo Schwarze2014-03-171-7/+12
|
* Merge from OpenBSD:Ingo Schwarze2013-09-181-34/+213
| | | | | 1) Revert filenames back to mandoc.{db,index} 2) Improve AUTHORS and HISTORY
* For citing the names and email addresses of authors,Ingo Schwarze2013-07-131-6/+4
| | | | | | | consistently use the style ".An name Aq Mt email". Triggered by a question from Jan Stary <hans at stare dot cz>, ok jmc@.
* Re-tooled mandocdb using sqlite3 and ohash.Kristaps Dzonsons2012-06-081-179/+33
| | | | | | | | | | See the tech@ mailing list entries in June 2012 for details, as well as the discuss@ mailing list entries from March 2012. Among other changes, this utility now: 1. uses a single sqlite3 database instead of several berkeley dbs 2. stores utf-8 encoded strings 3. using ohash to aggressively hash its contents 4. using fts() instead of manually walking directories
* Update the whatis.db database format.Ingo Schwarze2011-12-251-8/+12
| | | | | While here, reference apropos(1) from the description, inspired by the makewhatis(8) manual.
* Use the traditional name "whatis.db" for the mandocdb(8) databases.Ingo Schwarze2011-12-251-6/+6
| | | | Requested by deraadt@, ok kristaps@.
* Implement test mode (makewhatis -t), required for pkg_create(8).Ingo Schwarze2011-12-251-6/+22
| | | | | | | | | | | | Always do all consistency checks; when any one fails, decide whether to print a message, or skip the file, or both, or none. While here, do some cleanup as well: * Bail out on conflicting options. * Do not crash with -a if there are plain files in the root dir. * Collect some related variables into structs. Feedback and OK kristaps@.
* Make the stored "cat"/"mdoc"/"man" strings just be c/d/a single-characterKristaps Dzonsons2011-12-161-9/+6
| | | | | bytes. This cuts down a little in index size and allows for cleaner extraction of information.
* Make paths in the mandocdb(8) index relative to the databases' pathKristaps Dzonsons2011-12-161-3/+3
| | | | | | | prefix. This means that an index in, say, /usr/share/man will point to man1/foo.1 instead of /usr/share/man/man1/foo.1. Not only does this save a lot of space, it also allows manual trees to be moved around without any side effects to the mandocdb(8) databases.
* implement -C (alternative config file) for apropos(1) and mandocdb(8),Ingo Schwarze2011-12-121-6/+22
| | | | | including various tweaks to the whatis(8) manual; ok kristaps@
* This is a little gross: Linux and Apple need lots some cajoling to workKristaps Dzonsons2011-12-021-6/+6
| | | | | | | | with byte-swapping. Tested on Mac. Any Linux machines somebody can test on? Anybody? While here, note the correct byte-size in mandocdb(8) and also note field widths and endianness. The btree is now endian-neutral.
* Fix mandocdb(8) to pass over the type when pruning the database. ThisKristaps Dzonsons2011-12-011-5/+23
| | | | | | fixed `-d' perpetually adding the same files. While here, clean up the code and document it. Remove -vv (complain if you want it back in). Document the error messages in a DIAGNOSTICS section of mandocdb(8).
* Note that mandocdb(8) record type is 64-bit and show all possible values.Kristaps Dzonsons2011-11-291-40/+52
| | | | | Also slightly clarify the role of mdoc/man/cat. Finally, remove mandoc(1) reference (it's not mentioned in the manual).
* Discuss the default behaviour up front before talking about optionsIngo Schwarze2011-11-281-38/+49
| | | | | | modifying it; based on a remark by kristaps@. While here, mention parsing of unformatted files and the changed index format and fix a few minor issues.
* Store page titles in the correct case, and by default, onlyIngo Schwarze2011-11-261-3/+14
| | | | | | put stuff into the database that man(1) will be able to retrieve. However, support an option to use all directories and files. feedback and ok kristaps@
* Have mandocdb(8) take advantage of manpath.h.Kristaps Dzonsons2011-11-231-2/+9
| | | | | This brings it in line with makewhatis(8), which, like apropos(1), will use man.conf (or manpath(1)) if no manpath entries are provided.
* The documented flags in mandocdb (-u, -d) were switched. Fix this.Kristaps Dzonsons2011-10-091-4/+4
|
* Replace the old `An'/`Aq' AUTHORS note with `An'/`Mt'.Kristaps Dzonsons2011-08-181-3/+4
|
* Big step forward in bringing mandocdb in line with most makewhatis-typeKristaps Dzonsons2011-07-151-24/+44
| | | | systems.
* First step of making mandocdb a true makewhatis/mandb replacement:Kristaps Dzonsons2011-07-151-33/+22
| | | | | | | accept a set of directories on the command line ("manpaths") that are recursed for files. The databases are created in each manpath root. This temporarily removes OP_UPDATE and OP_DELETE functionality, which will be added back in.
* move mandocdb(1) to mandocdb(8)Ingo Schwarze2011-07-141-0/+191
"please make this change" kristaps@