summaryrefslogtreecommitdiffstats
path: root/mandocdb.8
Commit message (Collapse)AuthorAgeFilesLines
* minor sync to OpenBSDIngo Schwarze2014-03-171-4/+26
|
* Merge the relevant parts from the VERSION_1_12 branch:Ingo Schwarze2013-10-011-5/+37
| | | | | - change mandocdb.db to mandoc.db - add HISTORY to mandocdb(8)
* For citing the names and email addresses of authors,Ingo Schwarze2013-07-131-4/+2
| | | | | | | 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-177/+31
| | | | | | | | | | 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-7/+11
| | | | | 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-5/+5
| | | | Requested by deraadt@, ok kristaps@.
* Implement test mode (makewhatis -t), required for pkg_create(8).Ingo Schwarze2011-12-251-4/+20
| | | | | | | | | | | | 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-8/+5
| | | | | 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-1/+1
| | | | | | | 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-4/+20
| | | | | 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-4/+4
| | | | | | | | 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-3/+21
| | | | | | 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-38/+50
| | | | | 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-36/+47
| | | | | | 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-1/+12
| | | | | | 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-0/+7
| | | | | 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-2/+2
|
* Replace the old `An'/`Aq' AUTHORS note with `An'/`Mt'.Kristaps Dzonsons2011-08-181-1/+2
|
* Big step forward in bringing mandocdb in line with most makewhatis-typeKristaps Dzonsons2011-07-151-23/+43
| | | | systems.
* First step of making mandocdb a true makewhatis/mandb replacement:Kristaps Dzonsons2011-07-151-31/+20
| | | | | | | 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@