/[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

Annotation of /trunk/update_all.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 94 - (hide annotations)
Sun Apr 24 16:33:21 2005 UTC (19 years ago) by dpavlin
File MIME type: application/x-sh
File size: 625 byte(s)
added experimental slicing before merge (not used)

1 dpavlin 43 #!/bin/sh
2    
3 dpavlin 94 rm index/all index/all.prop
4     swish-e -M `ls index | grep -v \.prop$ | grep -v all | grep -v CVS | sed 's#^#./index/#'` index/all
5    
6     exit 1
7    
8 dpavlin 43 # re-create global all swish
9 dpavlin 45 cd /rest/references/swish
10 dpavlin 94 tmp=/tmp/split
11 dpavlin 93 rm -f index/all index/all.prop index/*temp
12 dpavlin 94 ls index | grep .prop$ | grep -v all | grep -v CVS | sed -e 's#^#./index/#' -e 's#.prop$##' | split -l 3 - $tmp
13     nr_splits=`ls $tmp* | wc -l`
14     nr=0
15     ls $tmp* | while read split ; do
16     nr=`expr $nr + 1`
17     echo "working on $nr/$nr_splits: $split"
18     swish-e -M `cat $split` index/split-$nr
19     done
20    
21     echo "merge slices"
22     swish-e -M `ls index/split-*` index/all
23     rm index/split-*

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26