Last change
on this file since 19033 was 19033, checked in by oranfry, 15 years ago |
only build if a real collection
|
-
Property svn:executable
set to
*
|
File size:
446 bytes
|
Rev | Line | |
---|
[19028] | 1 | #!/bin/bash
|
---|
| 2 | opwd=`pwd`
|
---|
| 3 | source setup.bash
|
---|
| 4 |
|
---|
| 5 | if [ ! -e "collect/dec" ]; then
|
---|
| 6 | cd collect
|
---|
| 7 | ln -s ../../dec
|
---|
| 8 | cd $opwd
|
---|
| 9 | fi
|
---|
| 10 |
|
---|
| 11 | cd collect
|
---|
| 12 |
|
---|
| 13 | for coll in dec/*; do
|
---|
| 14 | cd $opwd
|
---|
| 15 |
|
---|
[19033] | 16 | if [ -d "collect/$coll/etc" ]; then
|
---|
| 17 | echo
|
---|
| 18 | echo "Building collection $coll "
|
---|
| 19 | echo
|
---|
[19028] | 20 |
|
---|
[19033] | 21 | import.pl --removeold $coll && \
|
---|
| 22 | buildcol.pl --removeold $coll && \
|
---|
| 23 | rm -rf collect/$coll/index collect/$coll/archives && \
|
---|
| 24 | mv collect/$coll/building collect/$coll/index || exit 1
|
---|
| 25 | fi
|
---|
[19028] | 26 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.