summaryrefslogtreecommitdiff
path: root/lib/update-external.sh
blob: 7cf95f3fb8cedd720c2abb47023ffe45c78fd580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Pull in a new snapshot of external projects that are included in 
# our source tree for users that don't have them installed on their system

TARGETDIR="`dirname $0`"
WORKDIR="`mktemp -d`"

echo "Updating subunit..."
bzr export "$WORKDIR/subunit" lp:subunit 
for p in python/ filters/ perl/
do
	rsync -avz --delete "$WORKDIR/subunit/$p" "$TARGETDIR/subunit/$p"
done

echo "Updating testtools..."
bzr export "$WORKDIR/testtools" lp:testtools 
rsync -avz --delete "$WORKDIR/testtools/testtools/" "$TARGETDIR/testtools/"

rm -rf "$WORKDIR"