diff options
author | tg <tg@FreeBSD.org> | 2000-07-12 20:05:58 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2000-07-12 20:05:58 +0800 |
commit | 42316add3cc41b5b9975c59d3a4c425a1799dc09 (patch) | |
tree | 275280b68454e480e508358b237a3d752afe9197 /misc/tkman/files | |
parent | 1b00ecf87914dbf6437ec1b67be52c4189ace49c (diff) | |
download | freebsd-ports-gnome-42316add3cc41b5b9975c59d3a4c425a1799dc09.tar.gz freebsd-ports-gnome-42316add3cc41b5b9975c59d3a4c425a1799dc09.tar.zst freebsd-ports-gnome-42316add3cc41b5b9975c59d3a4c425a1799dc09.zip |
Update the glimpse index once a week.
Submitted by: Oliver Helmling <oliver.helmling@stud.uni-bayreuth.de>
Diffstat (limited to 'misc/tkman/files')
-rw-r--r-- | misc/tkman/files/310.index_manpages | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/tkman/files/310.index_manpages b/misc/tkman/files/310.index_manpages new file mode 100644 index 000000000000..510f98c6b925 --- /dev/null +++ b/misc/tkman/files/310.index_manpages @@ -0,0 +1,23 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/periodic/weekly/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +IFS=":" mandirs=`/usr/bin/manpath` + +for dir in ${mandirs}; do + cd ${dir} + if [ ! -r .glimpse_filters ] ; then + echo '*.gz /usr/bin/gzip -cdfq' > .glimpse_filters + fi + if [ -x ${PREFIX}/bin/glimpseindex ]; then + echo "" + echo "Rebuilding man page indexes:" + ${PREFIX}/bin/glimpseindex -z -o -B -f -H ${dir} man* + chmod 644 ${dir}/.glimpse_* + fi +done + +exit 0 |