/[swish]/trunk/update_all.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/update_all.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (show annotations)
Sat Apr 30 23:29:14 2005 UTC (19 years ago) by dpavlin
File MIME type: application/x-sh
File size: 825 byte(s)
check indexes, re-index if needed

1 #!/bin/sh
2
3 ls index/*.prop | sed -e 's#index/##' -e 's#.prop##' | while read index ; do
4 echo "checking $index"
5 swish-e -f "index/$index" -w "a*" -m 1 > /dev/null || swish-e -S prog -c "config/$index"
6 done
7
8 rm -f index/all index/all.prop
9 swish-e -M `ls index | grep -v \.prop$ | grep -v all | grep -v CVS | sed 's#^#./index/#'` index/all
10
11 exit 1
12
13 # re-create global all swish
14 cd /rest/references/swish
15 tmp=/tmp/split
16 rm -f index/all index/all.prop index/*temp
17 ls index | grep .prop$ | grep -v all | grep -v CVS | sed -e 's#^#./index/#' -e 's#.prop$##' | split -l 3 - $tmp
18 nr_splits=`ls $tmp* | wc -l`
19 nr=0
20 ls $tmp* | while read split ; do
21 nr=`expr $nr + 1`
22 echo "working on $nr/$nr_splits: $split"
23 swish-e -M `cat $split` index/split-$nr
24 done
25
26 echo "merge slices"
27 swish-e -M `ls index/split-*` index/all
28 rm index/split-*

Properties

Name Value
cvs2svn:cvs-rev 1.2
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26