#!/bin/csh -f

/bin/athena/aklog -c net.mit.edu
/bin/rm -f /afs/net/project/wais/autumn/techinfo/search_engine/INDEXLOG
echo "Starting the indexer...."
/afs/net.mit.edu/project/wais/autumn/techinfo/search_engine/@sys/waisindex -d ./temp -stdin -mem 1 < ./input >& /afs/net/project/wais/autumn/techinfo/search_engine/INDEXLOG
if ($status == 0) then
/bin/mv -f temp.inv test.inv
/bin/mv -f temp.dct test.dct
/bin/echo "Finished build."
else
/bin/echo "*** Problems with build. Check INDEXLOG."
endif
/bin/unlog

