Added Ids. Better logging
[idzebra-moved-to-github.git] / test / dmoz / update.sh
1 #!/bin/sh
2 # $Id: update.sh,v 1.2 2002-06-19 08:32:34 adam Exp $
3 t=$1
4 test -n "$t" || exit 1
5 rm -f *.mf *.LCK *.tmp
6 ../../index/zebraidx -l zebraidx.log init 
7 i=0
8 rm -f times-$t.log zebraidx-$t.log
9 while test -f dmoz.$i.xml; do
10         echo -n "$i " >>times-$1.log
11         /usr/bin/time -f '%e %U %P' -a -o times-$t.log ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg -f 10 update dmoz.$i.xml
12         ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat
13         i=`expr $i + 1`
14         if test $i = 29; then
15                 break
16         fi
17 done