Zebra now works with make distcheck
[idzebra-moved-to-github.git] / test / malxml / test1.sh
index b2bdbd8..c5a5607 100755 (executable)
@@ -1,4 +1,14 @@
 #!/bin/sh
+# $Id: test1.sh,v 1.5 2004-06-15 09:43:32 adam Exp $
+
+pp=${srcdir:-"."}
+
 LOG=test1.log
-../../index/zebraidx -l $LOG init
-../../index/zebraidx -l $LOG update f1.xml
+
+rm -f $LOG
+if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
+        ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
+else
+        exit 0
+fi
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG update $pp/f1.xml