Ignore:
Timestamp:
2013-08-15T20:57:59+12:00 (11 years ago)
Author:
ak19
Message:

No support for adding a new collection yet. At present the script is only concerned with rebuilding collections already added to SVN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/gen-model-colls.sh

    r28069 r28070  
    180180
    181181    if [ ! -e model-collect/$collection ]; then
    182     echo "del_col_archives_index: $collection does not exist in model-collect, will svn add this new collection shortly"
     182    echo "del_col_archives_index: $collection does not exist in model-collect"
    183183    return;
    184184    fi
     
    204204
    205205    if [ ! -e model-collect/$collection ]; then
    206     echo "add_col_archives_index: Adding the new collection $collection to SVN"
     206    echo "add_col_archives_index: $collection does not exist in model-collect"
    207207    return;
    208208    fi
     
    228228
    229229    if [ ! -e model-collect/$collection ]; then
    230     echo "update_single_collection: Adding new collection $collection to SVN"
     230    echo "svn_process_single_collection: $collection does not exist in model-collect"
    231231    return;
    232232    fi
     
    276276# Function that takes care of the --svnupdate flag mode of this script for a single collection
    277277function update_single_collection () {
     278    collection=$1
     279   
     280    #escape the filename (in case of space) and get just the basename
     281    collection=$(get_col_basename $collection)
     282
     283    if [ ! -e model-collect/$collection ]; then
     284    echo "update_single_collection: $collection does not exist in model-collect"
     285    return;
     286    fi
    278287
    279288    # copy across the contents of the rebuilt model-collection's index and archives to the svn model-collect
     
    395404#exit
    396405
     406
    397407# If no mode provided (svndelete|svnupdate) as cmd line arg, then don't modify
    398408# the svn model-collect folder. Then this script stops after rebuilding the model-copy in collect
Note: See TracChangeset for help on using the changeset viewer.