X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fgils%2Ftest.sh;h=8155338ec679fe41110b9429a3ab6f05cb3cc801;hp=0ddc04680ad84fb7a7fdb329a377d85816a64b7f;hb=7015acd8e5d174585a19064a0bc7ce19c612591e;hpb=cad0d3221732216fe2ab02e574eda4508b915584 diff --git a/test/gils/test.sh b/test/gils/test.sh index 0ddc046..8155338 100755 --- a/test/gils/test.sh +++ b/test/gils/test.sh @@ -1,15 +1,15 @@ -: -echo Loading Records +#!/bin/sh if [ -x ../../index/zmbolidx ]; then - ../../index/zmbolidx -t grs.sgml update records -fi -if [ -x ../../index/zebraidx ]; then - ../../index/zebraidx -t grs.sgml update records + 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 +$IDX -t grs.sgml update records echo Starting Server -if [ -x ../../index/zmbolsrv ]; then - ../../index/zmbolsrv -fi -if [ -x ../../index/zebrasrv ]; then - ../../index/zebrasrv -fi +$SRV