The NetBSD Project

CVS log for src/usr.sbin/makemandb/apropos-utils.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / makemandb

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:31 2014 UTC (2 months ago) by snj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:09 2014 UTC (4 months ago) by tls
Branch: tls-maxphys
Changes since 1.6.2.3: +2 -2 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:59:45 2014 UTC (4 months, 1 week ago) by tls
Branch: tls-earlyentropy
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Rebase.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 1 12:55:00 2014 UTC (4 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

Fix an off by one bug in apropos.
The bug is in the html output where some garbage characters are
seen in the context match output.

From Abhinav Upadhyay in PR 49058.

Revision 1.4.2.6 / (download) - annotate - [select for diffs], Thu May 22 11:43:06 2014 UTC (6 months, 4 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.4.2.5: +114 -60 lines
Diff to previous 1.4.2.5 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:05 2013 UTC (17 months, 4 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.6.2.2: +83 -34 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored)

resync from head

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 2 17:16:50 2013 UTC (20 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: tls-earlyentropy
Changes since 1.14: +43 -25 lines
Diff to previous 1.14 (colored)

instead of having a format and no format flag, and exposing various formatters,
provide a format enum and expose html formatting too.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 29 20:46:07 2013 UTC (20 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.13: +12 -7 lines
Diff to previous 1.13 (colored)

fix legacy mode in pager filter. (don't ul format if we are not formatting).

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 29 20:37:00 2013 UTC (20 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.12: +8 -14 lines
Diff to previous 1.12 (colored)

- Fix legacy mode to use like instead of match. This loses ranking.
- default to unlimited lines
- fix formatting of legacy mode

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 29 20:07:31 2013 UTC (20 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.11: +47 -15 lines
Diff to previous 1.11 (colored)

- If the stdout is not a tty, prevent formatting unless forced with -i
- Don't ever page unless asked for with -p
- Introduce "legacy mode" (-l)
  1. searches only name and name_desc, prints name(section) - name_description
  2. turns off escape formatting (can be forced on with -i)
  3. turns off context printing (can be forced on with -c)
- Parse the environment $APROPOS variable as an argument vector.

With these changes one can simply 'export APROPOS=-l' and get the old apropos
behavior.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:45 2013 UTC (21 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.6.2.1: +176 -36 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

resync with head

Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 10 23:58:27 2013 UTC (22 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.10: +8 -3 lines
Diff to previous 1.10 (colored)

add -r flag to elide tty formatting

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 10 23:24:18 2013 UTC (22 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.9: +34 -34 lines
Diff to previous 1.9 (colored)

remove trailing whitespace

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:43 2013 UTC (22 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.4.2.4: +140 -5 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jan 14 21:26:25 2013 UTC (23 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.8: +139 -4 lines
Diff to previous 1.8 (colored)

- move the terminal handling in apropos-utils.c since htmp and pager are also
  handled there.
- underline the name, section, and description so that it is prettier.
- change to bold terminal the terminal highlighting to match with less

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 14 18:01:59 2013 UTC (23 months ago) by christos
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Since mdocml decided to name headers that conflict with system ones (term.h)
move the header inclusion one up.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:03:02 2012 UTC (2 years ago) by tls
Branch: tls-maxphys
Changes since 1.6: +33 -5 lines
Diff to previous 1.6 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:37 2012 UTC (2 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.4.2.3: +33 -5 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.7 / (download) - annotate - [select for diffs], Sat Oct 6 15:33:59 2012 UTC (2 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.6: +33 -5 lines
Diff to previous 1.6 (colored)

Make mandb path configurable. makemandb (and related tools) use
the path from the _mandb variable from man.conf now.

Set _mandb in man.conf to same value as was used before.

From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Wed May 23 10:08:29 2012 UTC (2 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.4.2.2: +8 -5 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

sync with head.

Revision 1.6 / (download) - annotate - [select for diffs], Thu May 10 15:36:09 2012 UTC (2 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Branch point for: tls-maxphys
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

KNF

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed May 9 03:41:00 2012 UTC (2 years, 7 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.2.2.1: +6 -4 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Pull up following revision(s) (requested by wiz in ticket #229):
	usr.sbin/makemandb/makemandb.c: revision 1.9
	usr.sbin/makemandb/DBSCHEMA: revision 1.2
	usr.sbin/makemandb/apropos-utils.c: revision 1.5
	usr.sbin/makemandb/apropos-utils.h: revision 1.3
PR 46419 by Abhinav Upadhyay using his updated patch:
Clean up after removing man page aliases.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 7 11:18:16 2012 UTC (2 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.4: +6 -4 lines
Diff to previous 1.4 (colored)

PR 46419 by Abhinav Upadhyay using his updated patch:
Clean up after removing man page aliases.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Thu Apr 19 20:03:00 2012 UTC (2 years, 8 months ago) by riz
Branch: netbsd-6
Changes since 1.2: +18 -7 lines
Diff to previous 1.2 (colored)

Pull up following revision(s) (requested by wiz in ticket #186):
	usr.sbin/makemandb/apropos.c: revision 1.6
	usr.sbin/makemandb/apropos-utils.c: revision 1.3
	usr.sbin/makemandb/apropos-utils.c: revision 1.4
Add the result from sqlite3_errmsg() to some error messages.
Now we can get "apropos: Unable to query schema version: database is locked"
instead of just "apropos: Unable to query schema version".
Handle pages with slashes in their names better.
From Abhinav Upadhyay in private mail.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:49 2012 UTC (2 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.4.2.1: +766 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.4.2.1, Sun Apr 15 15:56:52 2012 UTC (2 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.4: +0 -766 lines
FILE REMOVED

file apropos-utils.c was added on branch yamt-pagecache on 2012-04-17 00:09:49 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 15 15:56:52 2012 UTC (2 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Branch point for: yamt-pagecache
Changes since 1.3: +8 -3 lines
Diff to previous 1.3 (colored)

Handle pages with slashes in their names better.
From Abhinav Upadhyay in private mail.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 7 10:44:58 2012 UTC (2 years, 8 months ago) by apb
Branch: MAIN
Changes since 1.2: +13 -7 lines
Diff to previous 1.2 (colored)

Add the result from sqlite3_errmsg() to some error messages.
Now we can get "apropos: Unable to query schema version: database is locked"
instead of just "apropos: Unable to query schema version".

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 7 19:17:16 2012 UTC (2 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix C&P error with $NetBSD$

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 7 19:13:32 2012 UTC (2 years, 10 months ago) by joerg
Branch: MAIN

Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.

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.




CVSweb <webmaster@jp.NetBSD.org>