The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Thu Aug 3 07:49:23 2023 UTC (7 months, 3 weeks ago) by rin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored) to selected 1.4.2.1 (colored)

makemandb: trailing whitespace

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Fri Jun 3 12:25:14 2022 UTC (21 months, 3 weeks ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.24: +20 -7 lines
Diff to previous 1.24 (colored) next main 1.25 (colored) to selected 1.4.2.1 (colored)

Pull up following revision(s) (requested by gutteridge in ticket #1461):

	usr.sbin/makemandb/apropos.1: revision 1.19
	usr.sbin/makemandb/apropos.c: revision 1.25
	usr.sbin/makemandb/apropos.c: revision 1.26
	usr.sbin/makemandb/apropos.1: revision 1.20
	usr.sbin/makemandb/apropos.1: revision 1.21
	usr.sbin/makemandb/apropos.1: revision 1.22
	usr.sbin/makemandb/apropos.1: revision 1.23
	usr.sbin/makemandb/apropos-utils.c: revision 1.46
	usr.sbin/makemandb/apropos-utils.c: revision 1.47
	usr.sbin/makemandb/apropos-utils.c: revision 1.49

PR/54343: Prevent NULL pointers in callback strings; use "*?*" for now to
identify them.

PR bin/54343:  We want the callback_args.machine to be NULL if it is not
present in the DB.

The previous commit fixed the problem of allowing apropos to not crash and
produce output even if the database is missing values for certain mandatory
fields, such as name, section etc. Normally we don't expect those values
to be missing in the database but in case of parsing errors it can happen.

However, the machine architecture is an optional field since not all man pages
are hardware specific so that should be allowed to be set to NULL if not
present in the database.

apropos.c: fix pager functionality

Issue reported by Rocky Hotas on NetBSD-Users, patch input from RVP on
same, adjustments by me.

apropos.1: document the PAGER environment variable

apropos(1): use proper -width

apropos(1): use proper -width for the list of options too

apropos(1): Tweak the description of -1, ... -9, and -s

-s is not for compatibility only, because section names can be
anything.  E.g. we have 3lua and 9lua in base.  We have rudiments of
3f (for FORTRAN libs).  Some packages in pkgsrc also use suffixed 1
and 3 sections.

apropos(1): Use the official spelling for "SQLite".
While here, use .Bx to refer to 3BSD.

apropos(1): improve error handling in edge cases
Patch from RVP on NetBSD-Users, with an additional comment tweak by me.

Summary from RVP:
1. Ignore SIGPIPE so that we're not killed in the middle of some
   DB operation by a botched $PAGER:
$ env PAGER=3D/non-existent apropos -p ...
2. Return proper exit status in case of write errors:
$ apropos ... >/dev/full || echo fail

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 19 04:08:03 2022 UTC (22 months, 1 week ago) by gutteridge
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.25: +14 -7 lines
Diff to previous 1.25 (colored) to selected 1.4.2.1 (colored)

apropos(1): improve error handling in edge cases

Patch from RVP on NetBSD-Users, with an additional comment tweak by me.
Summary from RVP:

1. Ignore SIGPIPE so that we're not killed in the middle of some
   DB operation by a botched $PAGER:

$ env PAGER=/non-existent apropos -p ...

2. Return proper exit status in case of write errors:

$ apropos ... >/dev/full || echo fail

Revision 1.25 / (download) - annotate - [select for diffs], Tue May 17 00:21:22 2022 UTC (22 months, 1 week ago) by gutteridge
Branch: MAIN
Changes since 1.24: +8 -2 lines
Diff to previous 1.24 (colored) to selected 1.4.2.1 (colored)

apropos.c: fix pager functionality

Issue reported by Rocky Hotas on NetBSD-Users, patch input from RVP on
same, adjustments by me.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Nov 25 14:29:38 2017 UTC (6 years, 4 months ago) by abhinav
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-9
Changes since 1.23: +10 -12 lines
Diff to previous 1.23 (colored) to selected 1.4.2.1 (colored)

Encapsulate all the arguments required by the query callback function in a struct.

If we want to add or remove arguments from the callback functions, it requires
changing the callback interface all over the place. By letting the callback simply
expect a single struct argument, it would clean things up a bit.

ok christos

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sat Aug 5 03:51:38 2017 UTC (6 years, 7 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.4.2.1 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #176):
	usr.sbin/makemandb/apropos.c: revision 1.23
Make the 'no results found' message sound less harsh.
Changes "try using better keywords" to "try using different keywords".

Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 2 12:52:18 2017 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.4.2.1 (colored)

Make the 'no results found' message sound less harsh.

Changes "try using better keywords" to "try using different keywords".

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Tue May 2 03:19:23 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.21: +36 -30 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.4.2.1 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 1 05:28:00 2017 UTC (6 years, 10 months ago) by abhinav
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.21: +36 -30 lines
Diff to previous 1.21 (colored) to selected 1.4.2.1 (colored)

Simplify handling of the section arguments in apropos(1).

Earlier, a white space separated string was generated containing all the section
numbers passed through command line arguments. Later on that would have to be
tokenized and processed. Instead of that, use a NULL terminated array of strings.

Thanks to christos@ for reviewing and suggesting further improvements.

Revision 1.21 / (download) - annotate - [select for diffs], Sun May 22 19:26:04 2016 UTC (7 years, 10 months ago) by abhinav
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.20: +14 -9 lines
Diff to previous 1.20 (colored) to selected 1.4.2.1 (colored)

Add options to whatis and apropos to accept custom man.conf.

makemandb(8), man(1) already use -C as an option to take man.conf path,
	so use the same option for whatis(1) and apropos(1) for consitency.
	apropos was using -C/-c to disable/enable context of the search
	matches, change that to -M/-m respectively.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Apr 23 14:15:36 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) to selected 1.4.2.1 (colored)

add a newline

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 13 11:48:29 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.18: +28 -14 lines
Diff to previous 1.18 (colored) to selected 1.4.2.1 (colored)

PR/51062: Abhinav Upadhyay: Allow non numeric sections to be indexed and
searched by apropos(1).
Fold long lines.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 31 20:13:37 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored) to selected 1.4.2.1 (colored)

PR/51007: Abhinav Upadhyay: apropos.c: Remove unused includes

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 20 19:45:29 2015 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.16: +9 -5 lines
Diff to previous 1.16 (colored) to selected 1.4.2.1 (colored)

if we only asked for stopwords, use the original query.

Revision 1.6.2.5 / (download) - annotate - [select for diffs], Thu May 22 11:43:06 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.6.2.4: +114 -56 lines
Diff to previous 1.6.2.4 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored) to selected 1.4.2.1 (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.7.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:05 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.7.2.2: +109 -55 lines
Diff to previous 1.7.2.2 (colored) next main 1.8 (colored) to selected 1.4.2.1 (colored)

resync from head

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 2 17:16:50 2013 UTC (10 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, 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, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.15: +36 -18 lines
Diff to previous 1.15 (colored) to selected 1.4.2.1 (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.15 / (download) - annotate - [select for diffs], Fri Mar 29 21:39:16 2013 UTC (11 years ago) by wiz
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) to selected 1.4.2.1 (colored)

Sync usage with man page.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 29 20:37:00 2013 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored) to selected 1.4.2.1 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 29 20:07:31 2013 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.12: +84 -48 lines
Diff to previous 1.12 (colored) to selected 1.4.2.1 (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.7.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:45 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.7.2.1: +18 -17 lines
Diff to previous 1.7.2.1 (colored) to selected 1.4.2.1 (colored)

resync with head

Revision 1.12 / (download) - annotate - [select for diffs], Sun Feb 10 23:58:28 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.11: +8 -4 lines
Diff to previous 1.11 (colored) to selected 1.4.2.1 (colored)

add -r flag to elide tty formatting

Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 10 23:24:18 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.10: +9 -9 lines
Diff to previous 1.10 (colored) to selected 1.4.2.1 (colored)

remove trailing whitespace

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:43 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.6.2.3: +7 -10 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored) to selected 1.4.2.1 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 14 21:26:25 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.9: +4 -36 lines
Diff to previous 1.9 (colored) to selected 1.4.2.1 (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.9 / (download) - annotate - [select for diffs], Mon Jan 14 18:04:58 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.8: +39 -10 lines
Diff to previous 1.8 (colored) to selected 1.4.2.1 (colored)

Fix the #ifdef NOTYET, namely use the terminal standout mode to highlight the
search terms.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Tue Nov 20 23:11:47 2012 UTC (11 years, 4 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
Changes since 1.4.2.2: +1 -1 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.4.2.1 (colored)

Pull up following revision(s) (requested by tron in ticket #676):
	usr.sbin/makemandb/apropos.c: revision 1.7
	usr.sbin/makemandb/makemandb.8: revision 1.3
	usr.sbin/makemandb/makemandb.8: revision 1.4
	usr.sbin/makemandb/makemandb.8: revision 1.5
	etc/rc.d/makemandb: revision 1.4
	etc/weekly: revision 1.29
	usr.sbin/makemandb/makemandb.c: revision 1.10
	usr.sbin/makemandb/makemandb.c: revision 1.11
	usr.sbin/makemandb/makemandb.c: revision 1.12
	usr.sbin/makemandb/makemandb.c: revision 1.13
	usr.sbin/makemandb/makemandb.c: revision 1.14
	usr.sbin/makemandb/apropos.1: revision 1.5
	etc/daily: revision 1.87
Add HISTORY section. From Abhinav Upadhyay in private mail.
Sync with reality, From Abhinav Upadhyay in private mail.
Fix typo in a message.
Bug fix for PR 46733:
 > makemandb always reports the same number for "Total Number of new or
 > updated pages enountered" and "Total number of (hard or symbolic)
 > links found".
Patch from Abhinav Upadhyay.
Sort options in SYNOPSIS.
Sync usage with manpage.
Add -Q flag:
Print only fatal error messages (i.e., when the database is left in
an inconsistent state and needs manual intervention).
From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
Use new makemandb -Q flag to be really quiet.
Fix usage, from Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
Use emalloc in one more place, like the rest of the code does.
From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:03:02 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.4.2.1 (colored)

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

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:38 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.6.2.2: +4 -4 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) to selected 1.4.2.1 (colored)

sync with head

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 6 15:33:59 2012 UTC (11 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.4.2.1 (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.7 / (download) - annotate - [select for diffs], Fri Sep 7 11:28:46 2012 UTC (11 years, 6 months ago) by wiz
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.4.2.1 (colored)

Fix usage, from Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Thu Apr 19 20:03:00 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: 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.4.2.1: +3 -3 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (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.6.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:49 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.6.2.1: +283 -0 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) to selected 1.4.2.1 (colored)

sync with head

Revision 1.6.2.1, Sun Apr 15 15:56:52 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.6: +0 -283 lines
FILE REMOVED

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

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

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

Revision 1.4.2.1 / (download) - annotate - [selected], Sat Feb 18 18:03:26 2012 UTC (12 years, 1 month ago) by riz
Branch: netbsd-6
Changes since 1.4: +12 -5 lines
Diff to previous 1.4 (colored)

Pull up following revision(s) (requested by joerg in ticket #4):
	usr.sbin/makemandb/apropos.c: revision 1.5
	external/bsd/mdocml/dist/read.c: revision 1.6
	external/bsd/mdocml/dist/mandoc.h: revision 1.2
	usr.sbin/makemandb/makemandb.c: revision 1.3
	usr.sbin/makemandb/makemandb.c: revision 1.4
	usr.sbin/makemandb/makemandb.c: revision 1.5
	usr.sbin/makemandb/Makefile: revision 1.2
	etc/man.conf: revision 1.30
	usr.sbin/makemandb/apropos.1: revision 1.3
	external/bsd/mdocml/Makefile.inc: revision 1.15
Be a bit more friendly to man pages using the roff .so command by
changing the current directory to the parent of the man -p entry, e.g.
/usr/share/man for /usr/share/man1.
Also handle hyphen replacement if it was used as plain input and no
backslash sequence was used at all in the line.
Add support for apropos -s like in the old apropos. Fix capitalisation.
Add note about optional quotation. From Abhinav Upadhyay.
Merge mandoc.h r1.99 and read.c 1.28 from upstream:
Add mparse_readmem, which allows application to run the parser directly
from memory, e.g. after de-compressing a document.
Add support for compressed man pages in all the usual formats.
Use mmap when dealing with plain files.
Add entries for bzip2 and xz.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 15 23:53:13 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.4: +12 -5 lines
Diff to previous 1.4 (colored) to selected 1.4.2.1 (colored)

Add support for apropos -s like in the old apropos. Fix capitalisation.
Add note about optional quotation. From Abhinav Upadhyay.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 7 23:03:34 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.4.2.1 (colored)

Kill bad magic invocation.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 7 22:59:32 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.2: +3 -4 lines
Diff to previous 1.2 (colored) to selected 1.4.2.1 (colored)

getopt returns int, not char.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 7 19:17:16 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.4.2.1 (colored)

Fix C&P error with $NetBSD$

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 7 19:13:32 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
Diff to selected 1.4.2.1 (colored)

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>