Changeset 19033

Show
Ignore:
Timestamp:
17.04.2009 15:25:53 (10 years ago)
Author:
oranfry
Message:

only build if a real collection

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • release-kits/derk/resources/build.sh

    r19028 r19033  
    1414    cd $opwd 
    1515 
    16     echo 
    17     echo "Building collection $coll " 
    18     echo 
    19     import.pl --removeold $coll && \ 
    20     buildcol.pl --removeold $coll && \ 
    21     rm -rf collect/$coll/index collect/$coll/archives && \ 
    22     mv collect/$coll/building collect/$coll/index || exit 1 
     16    if [ -d "collect/$coll/etc" ]; then 
     17        echo 
     18        echo "Building collection $coll " 
     19        echo 
    2320 
     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 
    2426done