1#!/bin/sh 2 3#### THE SPOOL DIR IS "SPOOLDIR" IN THE LINE BELOW #### 4 5wwwoffle_spool=SPOOLDIR 6 7#### 8 9cd $wwwoffle_spool 10 11# Set the path to include the htdig executables 12 13PATH=$PATH:/usr/local/bin 14PATH=$PATH:/opt/www/htdig/bin # The Suse location 15export PATH 16 17# Set the temporary directory used for creating the fuzzy endings 18 19#TMPDIR=/tmp 20TMPDIR=search/htdig/tmp 21export TMPDIR 22 23# Set up a log file. 24 25echo > search/htdig/wwwoffle-htdig.log 26 27# Create the fuzzy databases 28 29htfuzzy -v -c search/htdig/conf/htfuzzy.conf endings \ 30 >> search/htdig/wwwoffle-htdig.log 2>&1 31 32htfuzzy -v -c search/htdig/conf/htfuzzy.conf synonyms \ 33 >> search/htdig/wwwoffle-htdig.log 2>&1 34