Up to [cvsweb.bsd.lv] / mandoc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.14, Fri Jun 8 10:47:17 2012 UTC (12 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Remove lint from Makefile. Disable some parts of the build (man.cgi, etc.) while sqlite3 is being merged in nice and slow. Remove the bit swapping stuff in config.h.post. Remove apropos_db (replaced by mansearch).
Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 24 01:46:25 2012 UTC (12 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_4,
VERSION_1_12_3,
VERSION_1_12_2,
VERSION_1_12_1,
VERSION_1_12
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (unified) to selected 1.4 (unified)
Be insane. Make apropos(1) subsume man(1).
Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 24 00:31:55 2012 UTC (12 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.11: +17 -3 lines
Diff to previous 1.11 (unified) to selected 1.4 (unified)
Simplify by not pre-filtering the result vector for satisfied matches: we can do this in the frontend.
Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 16 12:06:35 2011 UTC (12 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.10: +8 -2 lines
Diff to previous 1.10 (unified) to selected 1.4 (unified)
Make the stored "cat"/"mdoc"/"man" strings just be c/d/a single-character bytes. This cuts down a little in index size and allows for cleaner extraction of information.
Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 27 23:11:37 2011 UTC (12 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (unified) to selected 1.4 (unified)
Save the manual type (mdoc, man, or cat) in the index file of the mandoc databases, as suggested by kristaps@. Given the well-structured code, this is surprisingly simple. This changes the mandoc.index database format. Run "sudo mandocdb" to regenerate your databases.
Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 27 18:54:01 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (unified) to selected 1.4 (unified)
Get us a whatis(1) mode for apropos(1). This is from a patch to tech@ as critiqued by schwarze@, checked in to get the ball rolling.
Revision 1.8 / (download) - annotate - [select for diffs], Sat Nov 26 22:38:11 2011 UTC (12 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (unified) to selected 1.4 (unified)
Sync to OpenBSD, mostly gratuitous and whitespace differences, but a few serious things as well: * -M overrides MANPATH * -m prepends to the path * put back database close calls that got lost in mandocdb * missing sys/types.h in manpath.c, needed for size_t ok kristaps@
Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 23 09:55:28 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.6: +6 -1 lines
Diff to previous 1.6 (unified) to selected 1.4 (unified)
Let apropos_db.h export the volume of manpages for a parsed record. This is necessary since an array of records can have duplicate record numbers in different mandoc.index files. The volume [right now] is just the index of the parsed mandoc.index in the manpaths. This is sensible because the order of the manpath is significant (it's the order of duplicate-named manuals displayed by man(1)) and is thus not likely to change.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 20 15:43:14 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (unified) to selected 1.4 (unified)
Integrate a moderately-patched version of schwarze@'s support for multiple directories containing mandocdb(8) databases. Some changes follow: (1) don't support -M yet; (2) fall back to cwd if no prior manpath has been specified; (3) resolve manpages using realpath() to prevent consecutive chdir()'s over relative paths; (4) note where further error-reporting is required; (5) fix leaking memory on exit in several cases.
Revision 1.5 / (download) - annotate - [select for diffs], Fri Nov 18 07:02:19 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.4: +6 -17 lines
Diff to previous 1.4 (unified)
Evaluation with logical subexpressions. This allows support for arbitrary, nested logical subexpressions with AND (-a) and OR (-o) support.
Revision 1.4 / (download) - annotate - [selected], Mon Nov 14 10:07:06 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (unified)
Have exprcomp() accept a string instead of an array-pointer. Also, collapse the arguments in apropos(1) into a single string passed to exprcomp(). Ok schwarze@.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 13 11:10:27 2011 UTC (12 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (unified) to selected 1.4 (unified)
Rewrite the expression parser for a more concise syntax: apropos [search_type[,...]=]substring apropos search_type[,...][,i]~regex ... and expression evaluation must take the search type into account. This allows to: * drop the global -I option and * drop the enum match, just using a boolean int. "go ahead" kristaps@
Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 13 10:49:57 2011 UTC (12 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +1 -15 lines
Diff to previous 1.1 (unified) to selected 1.4 (unified)
Inventing new keywords for mostly the same thing when a well-established set of keywords already exists is a bad idea, so reuse the mdoc(7) macro names as apropos(1) search types. This is a gain in brevity as well. Some time ago, kristaps@ agreed in principle. The search type bit field constants are used by both mandocdb(8) and apropos(1) and should better stay in sync, so give them their own header file.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 13 10:12:05 2011 UTC (12 years, 10 months ago) by schwarze
Branch: MAIN
Diff to selected 1.4 (unified)
Less misleading file names; ok kristaps@.