diff options
author | fredb <fredb> | 2000-09-11 21:08:49 +0000 |
---|---|---|
committer | fredb <fredb> | 2000-09-11 21:08:49 +0000 |
commit | 2bb6d5dfe9fd0670266729b73cac9238dd067b7a (patch) | |
tree | 0407291ec57345e320426ec4af508532f7fe6905 /x11/tkman/files | |
parent | 1f42f30a766e82ea17992d8bd4c585beacc25118 (diff) | |
download | pkgsrc-2bb6d5dfe9fd0670266729b73cac9238dd067b7a.tar.gz |
Install a script to maintain the apropos and glimpse databases, and
instructions for using it.
Diffstat (limited to 'x11/tkman/files')
-rw-r--r-- | x11/tkman/files/mkindex | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/tkman/files/mkindex b/x11/tkman/files/mkindex new file mode 100644 index 00000000000..6d08d9f19b9 --- /dev/null +++ b/x11/tkman/files/mkindex @@ -0,0 +1,26 @@ +#!/bin/sh +# $NetBSD: mkindex,v 1.1 2000/09/11 21:08:50 fredb Exp $ +# +# This is a script to construct the glimpse databases for tkman, +# and also the apropos databases shared by tkman, man, and xman. +# We don't do this as part of the package install because it could +# be very time-consuming. It is possible to simply run tkman as root, +# and exercise the menu option to "rebuild databases", but it could +# take a long time, and who wants to run an X app as root, anyway? +# +# You might run this on a weekly basis by adding the following +# entry to root's crontab (edited to taste): +# +# 10 2 * * 6 @@PREFIX@@/libexec/mkindex + +# Don't add /usr/local to the list unless there's something there, +# because an empty glimpse database will cause tkman to squawk. +for i in /usr/share @@LOCALBASE@@ @@X11BASE@@; do + echo "Rebuilding glimpse database in $i/man..." + @@LOCALBASE@@/bin/glimpseindex -o -B -z -H $i/man $i/man/man? + chmod a+r $i/man/.glimpse_* + echo + echo "Rebuilding apropos database in $i/man..." + /usr/libexec/makewhatis $i/man + echo +done |