OpenBSD CVS

CVS log for src/usr.bin/mandoc/Attic/mandocdb.8


[BACK] Up to [local] / src / usr.bin / mandoc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18, Tue Jan 10 09:45:13 2012 UTC (12 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +2 -2 lines
FILE REMOVED

Continue using the traditional name makewhatis(8),
do not rename to mandocdb(8):  Even though there is some
additional functionality, the basic purpose remains the same.
Requested by espie@; "decide fast" deraadt@.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 9 01:59:08 2012 UTC (12 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

Rename whatis.{db,index} back to mandoc.{db,index}
such that makewhatis(8) called from pkg_delete(1)
does not fail trying to open old-style whatis.db files as btree(3).
Suggested by espie@ deraadt@ millert@

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 25 20:57:58 2011 UTC (12 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.15: +12 -8 lines
Diff to previous 1.15 (colored)

Update the whatis.db database format.
While here, reference apropos(1) from the description,
inspired by the makewhatis(8) manual.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 25 16:52:55 2011 UTC (12 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.14: +7 -7 lines
Diff to previous 1.14 (colored)

Use the traditional name "whatis.db" for the mandocdb(8) databases.
Requested by deraadt@, ok kristaps@.

CAUTION:
If you run "sudo mandocdb" after this, the old apropos(1) and whatis(1)
will not work any longer.  To get temporary copies of the new ones, run:
cd /usr/bin; rm -f apropos whatis; ln -s mandoc apropos; ln -s mandoc whatis

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 25 13:05:29 2011 UTC (12 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.13: +22 -6 lines
Diff to previous 1.13 (colored)

Implement test mode (makewhatis -t), required for pkg_create(8).
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@.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Dec 19 02:26:33 2011 UTC (12 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.12: +8 -11 lines
Diff to previous 1.12 (colored)

Improvements from kristaps@:
(1) Make the database format simpler and smaller by
- storing the file type as a single character and
- storing paths relative to the dir containing the database.
The latter allows to move trees around.
Both together typically save 15-25% of the index size.
(2) Make sure apropos(1) "any" really covers all search keys.
(3) Make manpath_parseline() static, drop manpath_parseconf() completely.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 12 01:59:13 2011 UTC (12 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.11: +21 -5 lines
Diff to previous 1.11 (colored)

implement -C (alternative config file) for apropos(1) and mandocdb(8);
ok kristaps@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 3 14:53:12 2011 UTC (12 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored)

Make the mandocdb(8) format endian-neutral by storing integer data
in network byte order; from kristaps@.

Hopefully, this finishes the database format.
This commit requires another rebuild of your mandoc databases
by running "sudo mandocdb".

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 1 23:22:09 2011 UTC (12 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +23 -5 lines
Diff to previous 1.9 (colored)

Fix mandocdb(8) to pass over the type when pruning the database.
This fixed `-d' perpetually adding the same files.
While here, remove -vv, clean up the code and document it.
From kristaps@.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 29 22:30:56 2011 UTC (12 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.8: +53 -41 lines
Diff to previous 1.8 (colored)

Sync to bsd.lv, mostly from kristaps@.
Make `-i' only apply to regular expressions.
For substring matches, always use strcasestr().
Also, improve some manuals and comments.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Nov 28 01:37:30 2011 UTC (12 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +49 -38 lines
Diff to previous 1.7 (colored)

Discuss the default behaviour up front before talking about options
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.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 26 13:07:15 2011 UTC (12 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +9 -2 lines
Diff to previous 1.6 (colored)

minor sync to bsd.lv

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 17 15:02:29 2011 UTC (12 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +9 -5 lines
Diff to previous 1.5 (colored)

Fix a pasto that prevented detection of mandoc.index dbopen(3) failure.
And as suggested by kristaps@, improve a lot of comments.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 14 18:52:05 2011 UTC (12 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +10 -3 lines
Diff to previous 1.4 (colored)

Store page titles in the correct case, and by default, only
put stuff into the database that man(1) will be able to retrieve.
However, support an option to use all directories and files.

Kristaps@ agreed with the general direction and provided some feedback.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 9 17:59:56 2011 UTC (12 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Sync to version 1.12.0; all code by kristaps@:
Implement .Rv in -Tman.
Let -man -Tman work a bit like cat(1).
Add the -Ofragment option to -T[x]html.
Minor fixes in -T[x]html.
Lots of apropos(1) and -Tman code cleanup.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 18 10:25:28 2011 UTC (12 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)

sync to version 1.11.5:
adding an implementation of the eqn(7) language
by kristaps@

So far, only .EQ/.EN blocks are handled, in-line equations are not, and
rendering is not yet very pretty, but the parser is fairly complete.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 17 13:45:28 2011 UTC (12 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +49 -40 lines
Diff to previous 1.1 (colored)

Change the mandocdb(8) interface to better agree with makewhatis(8);
in particular, allow recursing multiple directories and create
multiple databases in one call.
This commit includes some reorganization, and exposing mandoc_strdup
as a utility function in mandoc.h.
written by kristaps@

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 14 15:10:54 2011 UTC (12 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0

Import mandocdb(8) from bsd.lv, coded by kristaps@, for in-tree development.
Will need adjustments to user interface and functionality, and will be
linked into the mandoc(1) binary and hardlinked from /usr/libexec/mandocdb
to /usr/bin/mandoc when ready for general consumption.
The ultimate goal is to call it from OpenBSD::Makewhatis to replace
OpenBSD::Makewhatis::Unformated with enhanced functionality.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.