projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2057f89
)
Create directories automatically
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 28 Feb 2003 10:44:44 +0000
(10:44 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 28 Feb 2003 10:44:44 +0000
(10:44 +0000)
perl/demo/index.sh
patch
|
blob
|
history
diff --git
a/perl/demo/index.sh
b/perl/demo/index.sh
index
2677232
..
aa2678b
100755
(executable)
--- 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