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-* |