testtools: Fix included testtools, for systems that don't have it.
[samba.git] / lib / update-external.sh
1 #!/bin/sh
2 # Pull in a new snapshot of external projects that are included in 
3 # our source tree for users that don't have them installed on their system
4
5 TARGETDIR="`dirname $0`"
6 WORKDIR="`mktemp -d`"
7
8 echo "Updating subunit..."
9 bzr export "$WORKDIR/subunit" lp:subunit 
10 for p in python/ filters/ perl/
11 do
12         rsync -avz --delete "$WORKDIR/subunit/$p" "$TARGETDIR/subunit/$p"
13 done
14
15 echo "Updating testtools..."
16 bzr export "$WORKDIR/testtools" lp:testtools 
17 rsync -avz --delete "$WORKDIR/testtools/" "$TARGETDIR/testtools/"
18
19 rm -rf "$WORKDIR"