~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to upload.sh

  • Committer: John Arbash Meinel
  • Date: 2005-06-21 18:52:38 UTC
  • mto: (0.5.85) (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20050621185237-1ea0dfbf3f4f8448
Adding an upload script, taken from the bzr mainline source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -ex
 
2
 
 
3
# --include-from is used to make sure that only versioned files and
 
4
# control files are copied.  We use includes/excludes rather than
 
5
# --files-from so that we can delete any files from the destination
 
6
# that are no longer present on the source.
 
7
 
 
8
repo=jameinel@bzr.arbash-meinel.com:/srv/bzr/public/plugins
 
9
dir=bzr-changeset
 
10
cd ~/dev/bzr/$dir
 
11
 
 
12
# note: don't use -a because that can mess up the permissions
 
13
 
 
14
chmod a+rX `bzr inventory`
 
15
 
 
16
bzr inventory | 
 
17
rsync -rltv                             \
 
18
    -e 'ssh -c blowfish'                \
 
19
    .                                   \
 
20
    $repo/$dir                          \
 
21
    --include-from -                    \
 
22
    --include .bzr                      \
 
23
    --include '.bzr/**'                 \
 
24
    --exclude-from .rsyncexclude        \
 
25
    --exclude-from .bzrignore           \
 
26
    --exclude \*                        \
 
27
    --exclude '.*'                      \
 
28
    --delete-excluded --delete          \