The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:31 2014 UTC (4 weeks, 5 days ago) by snj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

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

Revision 1.14.2.4 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:09 2014 UTC (3 months ago) by tls
Branch: tls-maxphys
Changes since 1.14.2.3: +65 -28 lines
Diff to previous 1.14.2.3 (colored) next main 1.15 (colored)

Rebase to HEAD as of a few days ago.

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

Rebase.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 3 14:42:41 2014 UTC (5 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Fix a bug that caused an error about a UNIQUE constraint violation.
Patch from Abhinav Upadhyay.

Revision 1.23 / (download) - annotate - [select for diffs], Sat May 24 21:01:58 2014 UTC (5 months, 4 weeks ago) by wiz
Branch: MAIN
Changes since 1.22: +12 -3 lines
Diff to previous 1.22 (colored)

Replace non-breaking space with hyphen, and call hyphen replacement
from one more place.
Improves 'man -k midi' output.

From Abhinav Upadhyay.

Revision 1.7.2.7 / (download) - annotate - [select for diffs], Thu May 22 11:43:06 2014 UTC (6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.7.2.6: +83 -51 lines
Diff to previous 1.7.2.6 (colored) to branchpoint 1.7 (colored) next main 1.8 (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.22 / (download) - annotate - [select for diffs], Mon Feb 10 00:23:36 2014 UTC (9 months, 1 week ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.21: +45 -21 lines
Diff to previous 1.21 (colored)

in update_db(), extract the full list of files to update from the db
before actually updating anything, since changing the db while the query
that extracts the list of files is still in progress results in
the extraction query failing before it finds everything.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 5 19:26:44 2014 UTC (10 months, 2 weeks ago) by joerg
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Sync with interface change in mdocml 1.12.3.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Nov 13 18:46:33 2013 UTC (12 months, 1 week ago) by wiz
Branch: MAIN
Changes since 1.19: +12 -8 lines
Diff to previous 1.19 (colored)

Skip files of size 0 from indexing.

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

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:05 2013 UTC (16 months, 4 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.14.2.2: +8 -4 lines
Diff to previous 1.14.2.2 (colored)

resync from head

Revision 1.19 / (download) - annotate - [select for diffs], Wed May 15 00:35:02 2013 UTC (18 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.18: +8 -4 lines
Diff to previous 1.18 (colored)

avoid stdio assertion, failing later

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:45 2013 UTC (20 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.14.2.1: +28 -28 lines
Diff to previous 1.14.2.1 (colored)

resync with head

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 10 23:24:18 2013 UTC (21 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.17: +25 -25 lines
Diff to previous 1.17 (colored)

remove trailing whitespace

Revision 1.2.2.7 / (download) - annotate - [select for diffs], Fri Feb 8 19:45:43 2013 UTC (21 months, 1 week 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.2.2.6: +2 -0 lines
Diff to previous 1.2.2.6 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Pull up following revision(s) (requested by christos in ticket #786):
	usr.sbin/makemandb/makemandb.c: revision 1.16
If you cannot parse .SH NAME, like in the case of the ksh93 man page
where the .SH is followed by a conditional:
.SH NAME
.if \nZ=0 \{text text text
.\}
at least don't core-dump.

Revision 1.7.2.6 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:43 2013 UTC (21 months, 4 weeks ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.7.2.5: +5 -5 lines
Diff to previous 1.7.2.5 (colored) to branchpoint 1.7 (colored)

sync with head

Revision 1.7.2.5 / (download) - annotate - [select for diffs], Wed Jan 16 05:34:09 2013 UTC (22 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.7.2.4: +4 -2 lines
Diff to previous 1.7.2.4 (colored) to branchpoint 1.7 (colored)

sync with (a bit old) head

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 14 18:01:59 2013 UTC (22 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

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

Revision 1.2.2.6 / (download) - annotate - [select for diffs], Tue Nov 20 23:11:47 2012 UTC (2 years ago) by riz
Branch: netbsd-6
Changes since 1.2.2.5: +68 -36 lines
Diff to previous 1.2.2.5 (colored) to branchpoint 1.2 (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.14.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.14: +20 -14 lines
Diff to previous 1.14 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 8 19:17:54 2012 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

If you cannot parse .SH NAME, like in the case of the ksh93 man page
where the .SH is followed by a conditional:

.SH NAME
.if \nZ=0 \{\
text text text
.\}

at least don't core-dump.

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:38 2012 UTC (2 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.7.2.3: +83 -47 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored)

sync with head

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 6 15:33:59 2012 UTC (2 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.14: +18 -14 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Fri Sep 7 11:29:04 2012 UTC (2 years, 2 months ago) by wiz
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Use emalloc in one more place, like the rest of the code does.
From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Aug 29 20:33:01 2012 UTC (2 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.12: +64 -32 lines
Diff to previous 1.12 (colored)

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>.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 25 12:37:12 2012 UTC (2 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Sync usage with manpage.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Aug 11 21:07:13 2012 UTC (2 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

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.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jul 8 23:18:23 2012 UTC (2 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Fix typo in a message.

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

sync with head.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Wed May 9 03:41:00 2012 UTC (2 years, 6 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.2.2.4: +6 -4 lines
Diff to previous 1.2.2.4 (colored) to branchpoint 1.2 (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.2.2.4 / (download) - annotate - [select for diffs], Mon May 7 17:02:07 2012 UTC (2 years, 6 months ago) by riz
Branch: netbsd-6
Changes since 1.2.2.3: +4 -4 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored)

Pull up following revision(s) (requested by wiz in ticket #228):
	usr.sbin/makemandb/makemandb.c: revision 1.8
The new apropos(1) incorrectly displays hyphens in the first line
of the search results for a few man pages (for man(7) based man
pages).
Use patch from Abhinav Upadhyay in PR 46408 to fix this.

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

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

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 4 23:50:26 2012 UTC (2 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

The new apropos(1) incorrectly displays hyphens in the first line
of the search results for a few man pages (for man(7) based man
pages).

Use patch from Abhinav Upadhyay in PR 46408 to fix this.

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

sync with head

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Mon Mar 5 19:16:27 2012 UTC (2 years, 8 months ago) by sborrill
Branch: netbsd-6
Changes since 1.2.2.2: +3 -3 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

Pull up the following revisions(s) (requested by joerg in ticket #77):
	usr.sbin/makemandb/makemandb.c:	revision 1.7

Fix inverted condition when handling stale entries.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Fri Mar 2 17:02:00 2012 UTC (2 years, 8 months ago) by riz
Branch: netbsd-6
Changes since 1.2.2.1: +35 -17 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Pull up following revision(s) (requested by joerg in ticket #70):
	usr.sbin/makemandb/makemandb.c: revision 1.6
Expand workaround for .so usage to do the chdir call just before
starting parsing, not during the tree iteration. This gives it a chance
to work.

Revision 1.7.2.1, Fri Mar 2 15:09:58 2012 UTC (2 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.7: +0 -2039 lines
FILE REMOVED

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

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 2 15:09:58 2012 UTC (2 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Branch point for: yamt-pagecache
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Fix inverted condition when handling stale entries.
From Abhinav Upadhyay.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 27 16:51:06 2012 UTC (2 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.5: +35 -17 lines
Diff to previous 1.5 (colored)

Expand workaround for .so usage to do the chdir call just before
starting parsing, not during the tree iteration. This gives it a chance
to work.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 18:03:26 2012 UTC (2 years, 9 months ago) by riz
Branch: netbsd-6
Changes since 1.2: +110 -29 lines
Diff to previous 1.2 (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], Thu Feb 16 20:58:55 2012 UTC (2 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.4: +90 -23 lines
Diff to previous 1.4 (colored)

Add support for compressed man pages in all the usual formats.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 15 23:36:10 2012 UTC (2 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.3: +17 -7 lines
Diff to previous 1.3 (colored)

Also handle hyphen replacement if it was used as plain input and no
backslash sequence was used at all in the line.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 15 23:35:00 2012 UTC (2 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.2: +7 -3 lines
Diff to previous 1.2 (colored)

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.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 7 19:17:16 2012 UTC (2 years, 9 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, 9 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>