Changeset 28105 for other-projects


Ignore:
Timestamp:
2013-08-20T20:23:31+12:00 (11 years ago)
Author:
ak19
Message:

Using rsync to copy selectively

File:
1 edited

Legend:

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

    r28081 r28105  
    272272    fi
    273273
    274     # remove the entire archives and index folders from svn
    275     cp -r collect/$collection/archives model-collect/$collection/.
    276     cp -r collect/$collection/index model-collect/$collection/.
     274    # copy across the entire rebuilt index and archives folders to the svn model-collect
     275    rsync -r --exclude=.svn/ --exclude=cache/ --exclude=earliestDatestamp collect/$collection/archives model-collect/$collection
     276    rsync -r --exclude=.svn/ --exclude=cache/ collect/$collection/index model-collect/$collection
    277277
    278278    # need a --force to skip all the svn:ignored files (archives/earliestDatestamp)
     
    353353
    354354    # copy across the contents of the rebuilt model-collection's index and archives to the svn model-collect
    355     cp -r collect/$collection/archives/* model-collect/$collection/archives/.
    356     cp -r collect/$collection/index/* model-collect/$collection/index/.
     355    rsync -r --exclude=.svn/ --exclude=cache/ --exclude=earliestDatestamp collect/$collection/archives/* model-collect/$collection/archives
     356    rsync -r --exclude=.svn/ --exclude=cache/ collect/$collection/index/* model-collect/$collection/index
    357357
    358358    # now svn add any and all the NEW items in model-collect's archives and index
Note: See TracChangeset for help on using the changeset viewer.