#!/bin/sh ######################################################### # part of the HTML Dictionary # Distributed under the GNU copyleft (any version of your choice) # No part of these documents may be printed in any for-profit publication # copyleft sunil@magnetic.demon.co.uk ######################################################### DOC_DIR=/usr/share/htdocs GLIMPSE_DIR=/usr/local/lib/glimpse GLIMPSE_BIN=$GLIMPSE_DIR/bin db=online DB_DIR=$GLIMPSE_DIR/databases/$db ###################################################### if [ ! -d $DB_DIR ] then mkdir -p $DB_DIR fi if [ ! -d $DB_DIR/thin ] then mkdir -p $DB_DIR/thin else echo "killing thin index" (cd $DB_DIR/thin; /bin/rm -f .gl*) fi if [ ! -d $DB_DIR/fat ] then mkdir -p $DB_DIR/fat else echo "killing fat index" (cd $DB_DIR/fat; /bin/rm -f .gl*) fi ###################################################### # make two indices. a thin one and a fat one ###################################################### echo "**making fast and tiny index**" $GLIMPSE_BIN/glimpseindex -o -H $DB_DIR/thin $DOC_DIR echo "**making fatter index***" $GLIMPSE_BIN/glimpseindex -B -f -s -H $DB_DIR/fat $DOC_DIR