~bzr-pqm/bzr/bzr.dev

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /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					    \