#!/bin/sh -e

#### THE SPOOL DIR IS "/var/cache/wwwoffle" 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 -v -s -c /etc/wwwoffle/htdig-incr.conf >> /var/log/wwwoffle-htdig.log 2>&1
htmerge -v -s -c /etc/wwwoffle/htmerge.conf >> /var/log/wwwoffle-htdig.log 2>&1
