-echo "Testing timings of updates"
-echo " init..."
-rm -f idx.log log timeref[12]
-rm -f records/esdd000[12].grs # these should not be here, will be created later
-../../index/zebraidx -c zebra2.cfg -l idx.log init || exit 1
+pp=${srcdir:-"."}
+
+LOG=timing2.log
+
+rm -f $LOG
+
+echo " init..." >>$LOG
+rm -f log timeref[12]
+rm -f $pp/records/esdd000[12].grs # these should not be here, will be created later
+../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1