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