From 52fad02a1584f75a0c7ea56c5e3381f84c3f1ce0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 28 Feb 2003 10:44:44 +0000 Subject: [PATCH] Create directories automatically --- perl/demo/index.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/perl/demo/index.sh b/perl/demo/index.sh index 2677232..aa2678b 100755 --- a/perl/demo/index.sh +++ b/perl/demo/index.sh @@ -1,4 +1,10 @@ #!/bin/sh - -rm demo/register/* demo/lock/* +if test ! -f demo/zebra.cfg; then + echo "Expected to find demo/zebra.cfg" + exit 1 +fi +test -d demo/register || mkdir demo/register +test -d demo/lock || mkdir demo/lock +test -d demo/tmp || mkdir demo/tmp +../index/zebraidx -c demo/zebra.cfg init ../index/zebraidx -c demo/zebra.cfg -g demo1 update /usr/lib/perl5 -- 1.7.10.4