#!/bin/sh

#### THE SPOOL DIR IS "/var/spool/wwwoffle" IN THE LINE BELOW ####

wwwoffle_spool=/var/spool/wwwoffle

####

cd $wwwoffle_spool

# Set the path to include the mknmz executable

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

# Set up a log file.

echo > search/namazu/wwwoffle-namazu.log

# Do the indexing

mknmz-wwwoffle -f search/namazu/conf/mknmzrc \
               -T search/namazu/conf \
               -O search/namazu/db \
               -Y \
               -V \
               lasttime \
    >> search/namazu/wwwoffle-namazu.log 2>&1
