Changeset 28816


Ignore:
Timestamp:
2014-01-31T16:24:28+13:00 (8 years ago)
Author:
ak19
Message:

When doing an svn_delete operation on a particular subset of collections, want to autocommit only these collections from the model-collect folder and not any other collections that may have been changed therein.

File:
1 edited

Legend:

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

    r28660 r28816  
    146146
    147147    # need slash on end of src dir collect/$collection/ !
    148     rsync -r --exclude=.svn/ --exclude=log/ --exclude=cached/--exclude=cache/ --exclude=earliestDatestamp --exclude=fail.log --exclude=collectionConfig.bak collect/$collection/ model-collect/$collection
     148    rsync -r --exclude=.svn/ --exclude=log/ --exclude=cached/ --exclude=cache/ --exclude=earliestDatestamp --exclude=fail.log --exclude=collectionConfig.bak collect/$collection/ model-collect/$collection
    149149
    150150#    find collect/$collection -name ".svn" -type d -exec rm -rf {} \;
     
    196196   
    197197   
     198    # make a space-separated list of all the collections
     199    # to keep track of which ones should be committed from the model-collect folder
     200    concatlist=
     201
    198202    if [ "x$1" == "x" ]; then
    199203    for collection in collect/*; do     
    200204        _del_col_archives_index $collection
     205        concatlist="$concatlist model-$collection"
    201206    done
    202207    else
    203208    for collection in "$@"; do
    204209        _del_col_archives_index $collection
     210        concatlist="$concatlist model-collect/$collection"
    205211    done
    206212    fi
     
    215221    # Numerical comparisons: http://tldp.org/LDP/abs/html/comparison-ops.html
    216222    if [ "$debug_mode" -eq "0" ]; then
    217     svn commit -m "AUTOCOMMIT by gen-model-colls.sh script. Message: $commit_message" model-collect
     223    svn commit -m "AUTOCOMMIT by gen-model-colls.sh script. Message: $commit_message" $concatlist
    218224    fi
    219225
     
    241247
    242248    if [ "$debug_mode" -eq "0" ]; then
    243     svn commit -m "AUTOCOMMIT by gen-model-colls.sh script. Message: $commit_message" model-collect
     249    svn commit -m "AUTOCOMMIT by gen-model-colls.sh script. Message: $commit_message" $concatlist
    244250    fi
    245251
Note: See TracChangeset for help on using the changeset viewer.