#!/bin/sh

#### THE SPOOL DIR IS "/ldisk/ports/www/wwwoffle/work/fake-alpha/usr/local/share/wwwoffle" IN THE LINE BELOW ####

wwwoffle_spool=/ldisk/ports/www/wwwoffle/work/fake-alpha/usr/local/share/wwwoffle

####

# Set the path to include the htdig executables

PATH=$PATH:/usr/local/bin
export PATH

# Set the temporary directory used for merging

#TMPDIR=/tmp
#export TMPDIR

# Set up a log file.

echo > $wwwoffle_spool/html/htdig/wwwoffle-htdig.log

# Do the digging and merging

htdig -v -c $wwwoffle_spool/html/htdig/conf/htdig-incr.conf >> $wwwoffle_spool/html/htdig/wwwoffle-htdig.log 2>&1
htmerge -v -c $wwwoffle_spool/html/htdig/conf/htmerge.conf >> $wwwoffle_spool/html/htdig/wwwoffle-htdig.log 2>&1
