diff options
author | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-08-22 15:47:16 +0100 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-08-22 15:47:16 +0100 |
commit | 25335618bf8755ce6b116ee14f47f5a1f2c821e9 (patch) | |
tree | d889d7ab3f9f985d0c54c534cb8052bd2e6d7163 /contrib/upload-bzr.dev | |
download | bzr-tarball-25335618bf8755ce6b116ee14f47f5a1f2c821e9.tar.gz |
Tarball conversion
Diffstat (limited to 'contrib/upload-bzr.dev')
-rw-r--r-- | contrib/upload-bzr.dev | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/upload-bzr.dev b/contrib/upload-bzr.dev new file mode 100644 index 0000000..7d5deb8 --- /dev/null +++ b/contrib/upload-bzr.dev @@ -0,0 +1,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 \ |