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
28
29
30
31
|
#! /bin/bash
SOURCEDEPS="~/canonical/lp-sourcedeps/sourcecode"
# Force tilde expansion
SOURCEDEPS=$(eval echo ${SOURCEDEPS})
DEVPAD="devpad.canonical.com"
ROCKETFUELDEPS="/code/rocketfuel-built/launchpad/sourcecode/*"
RSYNCOPTIONS="-avp --partial --progress --delete"
# Make sure we have an ssh key primed
ssh-add -l
if [ $? -gt 0 ]; then ssh-add; fi
if [ ! -d $SOURCEDEPS ]; then mkdir -p $SOURCEDEPS; fi
rsync $RSYNCOPTIONS $DEVPAD:$ROCKETFUELDEPS $SOURCEDEPS/
cd ~/canonical/lp-branches
for branch in *; do
cd $branch
echo "Updating sourcecode dependencies for ${branch}"
utilities/link-external-sourcecode.sh ../../lp-sourcedeps
cd ..
done
cd ~/canonical/lp-branches/trunk
bzr pull
make
|