Ignore:
Timestamp:
09/12/13 20:24:36 (7 years ago)
Author:
ak19
Message:

Not just the cache, but also the cached directory needs to be skipped when a (re-)built collection is copied over from collect to model-collect. Also added a comment on how to svn checkout just part of a directory tree, instead of everything, so you can get just this script and other scripts at its level instead of also checking out the rest of diffcol such as the model collections.

File:
1 edited

Legend:

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

    r28240 r28277  
    7171# http://stackoverflow.com/questions/5044214/how-do-i-detect-and-or-delete-empty-subversion-directories
    7272# http://stackoverflow.com/questions/1301203/removing-svn-files-from-all-directories
     73
     74# To checkout just this file and other files at this level from trac, see
     75# http://stackoverflow.com/questions/11650156/svn-checkout-depth
     76# http://svnbook.red-bean.com/en/1.7/svn.advanced.sparsedirs.html
     77# So you would do:
     78# svn co http://svn.greenstone.org/other-projects/nightly-tasks/diffcol/trunk diffcol --depth files
    7379
    7480#*******************************GLOBAL VARIABLES***************************
     
    140146
    141147    # need slash on end of src dir collect/$collection/ !
    142     rsync -r --exclude=.svn/ --exclude=log/ --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
    143149
    144150#    find collect/$collection -name ".svn" -type d -exec rm -rf {} \;
     
    295301
    296302    # copy across the entire rebuilt index and archives folders to the svn model-collect
    297     rsync -r --exclude=.svn/ --exclude=cache/ --exclude=earliestDatestamp collect/$collection/archives model-collect/$collection
    298     rsync -r --exclude=.svn/ --exclude=cache/ collect/$collection/index model-collect/$collection
     303    rsync -r --exclude=.svn/ --exclude=cached/ --exclude=cache/ --exclude=earliestDatestamp collect/$collection/archives model-collect/$collection
     304    rsync -r --exclude=.svn/ --exclude=cached/ --exclude=cache/ collect/$collection/index model-collect/$collection
    299305
    300306    # need a --force to skip all the svn:ignored files (archives/earliestDatestamp)
     
    382388
    383389    # copy across the contents of the rebuilt model-collection's index and archives to the svn model-collect
    384     rsync -r --exclude=.svn/ --exclude=cache/ --exclude=earliestDatestamp collect/$collection/archives/* model-collect/$collection/archives
    385     rsync -r --exclude=.svn/ --exclude=cache/ collect/$collection/index/* model-collect/$collection/index
     390    rsync -r --exclude=.svn/ --exclude=cached/ --exclude=cache/ --exclude=earliestDatestamp collect/$collection/archives/* model-collect/$collection/archives
     391    rsync -r --exclude=.svn/ --exclude=cached/ --exclude=cache/ collect/$collection/index/* model-collect/$collection/index
    386392
    387393    # 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.