Author: draenog                      Date: Fri May 13 14:58:57 2011 GMT
Module: git-migration                 Tag: HEAD
---- Log message:
- option to exclude binaries from rsync

---- Files affected:
git-migration:
   pld-git.sh (1.38 -> 1.39) 

---- Diffs:

================================================================
Index: git-migration/pld-git.sh
diff -u git-migration/pld-git.sh:1.38 git-migration/pld-git.sh:1.39
--- git-migration/pld-git.sh:1.38       Thu May 12 21:32:46 2011
+++ git-migration/pld-git.sh    Fri May 13 16:58:52 2011
@@ -7,6 +7,7 @@
 gitdir="git-import"
 CVSROOT=:pserver:[email protected]:/cvsroot
 LOCAL_CVS2GIT="yes"
+REMOVE_BINARIES="no"
 d=$-
 
 # get a copy of packages repo for faster local processing
@@ -20,10 +21,13 @@
        [ ! -f cvs.rsync ] || return 0
        # sync only *,v files and dirs
        local logfile=rsync.log
+       local exclude_pattern
+       [ "$REMOVE_BINARIES" = "yes" ] &&
+               exclude_pattern='--exclude=**/*.gz,v --exclude=**/*.bz2,v 
--exclude=**/*.tgz,v --exclude=**/*.Z,v'
        > $logfile
        rsync -av rsync://cvs.pld-linux.org/cvs/packages/ packages/ \
                --log-file=$logfile --log-file-format='changes=%i name=%n' \
-               --include=**/*,v --include=**/ --exclude=* --delete 
--delete-excluded
+               $exclude_pattern --include=**/*,v --include=**/ --exclude=* 
--delete --delete-excluded
 
        # parse rsync log
        # we want "^.f" - any file change
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/pld-git.sh?r1=1.38&r2=1.39&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to