Parent Directory | Revision Log
merge index slices into single index
1 | #!/bin/sh |
2 | |
3 | tmp=/tmp/swish-list |
4 | dir=./index |
5 | |
6 | ls "$dir/*.prop" | sed 's/\.prop$//' | grep -v all > $tmp |
7 | split -l 128 $tmp $tmp- |
8 | |
9 | num=0 |
10 | ls $tmp-* | while read slice ; do |
11 | num=`expr $num + 1` |
12 | printf 'merge slice %d\n' $num |
13 | |
14 | slicefile="index/slice-$num" |
15 | |
16 | if [ -f "$slicefile" ] ; then |
17 | echo "SKIP, $slicefile exists!" |
18 | else |
19 | echo swish-e -M `cat $slice` "$slicefile" |
20 | fi |
21 | done |
22 | |
23 | echo "merge all slices" |
24 | swish-e -M `ls index/slice-*.prop | sed 's/\.prop$//'` index/all |
25 | #rm -f index/slice-* |
26 |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |