~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/upload-bzr.dev

  • Committer: Martin Pool
  • Date: 2005-05-10 08:15:58 UTC
  • Revision ID: mbp@sourcefrog.net-20050510081558-9a38e2c46ba4ebc4
- Patch from Fredrik Lundh to check Python version and 
  try to find a better one if it's too old.

  Patched to try to prevent infinite loops in wierd configurations,
  and to log to stderr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh -ex
2
 
 
3
 
# example of how to upload a bzr tree using rsync
4
 
 
5
 
# --include-from is used to make sure that only versioned files and
6
 
# control files are copied.  We use includes/excludes rather than
7
 
# --files-from so that we can delete any files from the destination
8
 
# that are no longer present on the source.
9
 
 
10
 
cd ~/work/bzr 
11
 
 
12
 
bzr inventory |
13
 
rsync -av                                                           \
14
 
    .                                                               \
15
 
    escudero.ubuntu.com:/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/   \
16
 
    --include-from -                                                \
17
 
    --include .bzr                                                  \
18
 
    --include '.bzr/**'                                             \
19
 
    --exclude-from .rsyncexclude                                    \
20
 
    --exclude-from .bzrignore                                       \
21
 
    --exclude \*                                                    \
22
 
    --exclude '.*'                                                  \
23
 
    --delete-excluded --delete                                      \