Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 27647990744ebd9cfe32398f37f67e20 > files > 2511

bzr-2.6.0-11.1.mga5.i586.rpm

#! /bin/sh -ex

# example of how to upload a bzr tree using rsync

# --include-from is used to make sure that only versioned files and
# control files are copied.  We use includes/excludes rather than
# --files-from so that we can delete any files from the destination
# that are no longer present on the source.

cd ~/work/bzr 

# note: don't use -a because that can mess up the permissions

chmod a+rX `bzr inventory`

bzr inventory | 
rsync -rltv							    \
    .								    \
    escudero.ubuntu.com:/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/   \
    --include .bzr						    \
    --include '.bzr/**'						    \
    --exclude-from .rsyncexclude				    \
    --exclude-from .bzrignore					    \
    --include-from -						    \
    --exclude \*						    \
    --exclude '.*'						    \
    --delete-excluded --delete					    \