#!/bin/ksh # 1996-12-08 jhdiii # 2001-07-14 Also index /usr/local/man # -E: Do not exclude any files based on content # -b: build a medium index rather than tiny # -B: use a larger hash table # -n: index numbers as well as text # -F: read file list from standard input # -z: Use .glimpse_filters # -H: Put glimpse files in the named directory. # -S x: Do not include a word in the index if it appears in at least x% of # the files (the default for a small index is 80). # The index dir must have a .glimpse_include file with '*' in it or symlinked # files will not be indexed. find /usr/man/{html,cat}.* /usr/local/man/cat.* -type f -follow -print | glimpseindex -E -b -B -n -F -z -S 10 -H /usr/man chmod a+r /usr/man/.glimpse_*