#!/bin/sh

#### THE SPOOL DIR IS "SPOOLDIR" IN THE LINE BELOW ####

wwwoffle_spool=/var/cache/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 > /var/log/wwwoffle-htdig.log

# Do the digging and merging

htdig -i -v -s -c /etc/wwwoffle/htdig-lasttime.conf >> /var/log/wwwoffle-htdig.log 2>&1
htmerge -v -s -m /etc/wwwoffle/htdig-lasttime.conf -c /etc/wwwoffle/htmerge.conf >> /var/log/wwwoffle-htdig.log 2>&1
