projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore *.o, *~ files.
[idzebra-moved-to-github.git]
/
test
/
dmoz
/
update.sh
diff --git
a/test/dmoz/update.sh
b/test/dmoz/update.sh
index
0544ae2
..
359704b
100755
(executable)
--- a/
test/dmoz/update.sh
+++ b/
test/dmoz/update.sh
@@
-1,7
+1,10
@@
#!/bin/sh
#!/bin/sh
-# $Id: update.sh,v 1.8 2002-06-20 08:03:30 adam Exp $
+# $Id: update.sh,v 1.10 2002-07-15 11:48:21 adam Exp $
t=$1
test -n "$t" || exit 1
t=$1
test -n "$t" || exit 1
+test -d reg-$t && rm -fr reg-$t
+mkdir reg-$t
+
rm -f *.mf *.LCK *.tmp
../../index/zebraidx -l zebraidx-$t.log init
i=0
rm -f *.mf *.LCK *.tmp
../../index/zebraidx -l zebraidx-$t.log init
i=0
@@
-13,14
+16,12
@@
while test -f dmoz.$i.xml; do
grep ' zebraidx times:' zebraidx-$t.log | sed 's/.*zebraidx times://g' >>times-$t.log
grep ' zebraidx times:' zebraidx-$t.log | sed 's/.*zebraidx times://g' >>times-$t.log
- test -d rtmp || mkdir rtmp
- cp *.mf rtmp
- rm -f *.mf
- mv rtmp/*.mf .
-
- echo " ---------- $i ----- " >> stat-$t.log
- ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat >>stat-$t.log
i=`expr $i + 1`
i=`expr $i + 1`
+ mod=`expr $i % 50`
+ if test $mod -eq 0; then
+ echo "run $i" >> stat-$t.log
+ ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat >>stat-$t.log
+ fi
if test $i = 30; then
break
fi
if test $i = 30; then
break
fi