#!/bin/sh # # updig # # $Id$ # # This is a sample script to update a search database for ht://Dig. # if [ "$1" = "-v" ]; then verbose=-v fi # # Set the TMPDIR variable if you want htmerge to put files in a location # other than the default. This is important if you do not have enough # disk space for the big sort that htmerge runs. Also, be aware that # on some systems, /tmp is a memory mapped filesystem that takes away # from virtual memory. # TMPDIR=/anansi/anansi2/htdig-3.1.0b4/db export TMPDIR /anansi/anansi2/htdig-3.1.0b4/bin/htdig -a $verbose -s /anansi/anansi2/htdig-3.1.0b4/bin/htmerge -a $verbose -s /anansi/anansi2/htdig-3.1.0b4/bin/htnotify $verbose # Finally move in copy database to current ... cd /anansi/anansi2/htdig-3.1.0b4/db cp db.docdb.work db.docdb cp db.docs.index.work db.docs.index cp db.wordlist.work db.wordlist cp db.words.db.work db.words.db