More readable script.
[idzebra-moved-to-github.git] / test / gils / test.sh
index 8f0292b..8155338 100755 (executable)
@@ -1,5 +1,15 @@
-:
+#!/bin/sh
+if [ -x ../../index/zmbolidx ]; then
+       IDX=../../index/zmbolidx
+       SRV=../../index/zmbolsrv
+elif [ -x ../../index/zebraidx ]; then 
+       IDX=../../index/zebraidx
+       SRV=../../index/zebrasrv
+else
+       echo "No indexer found"
+       exit 1
+fi
 echo Loading Records
-../../index/zebraidx update records
+$IDX -t grs.sgml update records
 echo Starting Server
-../../index/zebrasrv
+$SRV