diff options
Diffstat (limited to 'lib/update-external.sh')
-rwxr-xr-x | lib/update-external.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/update-external.sh b/lib/update-external.sh new file mode 100755 index 0000000000..53748d8810 --- /dev/null +++ b/lib/update-external.sh @@ -0,0 +1,16 @@ +#!/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 +rsync -avz --delete "$WORKDIR/subunit/" "$TARGETDIR/subunit/" + +echo "Updating testtools..." +bzr export "$WORKDIR/testtools" lp:testtools +rsync -avz --delete "$WORKDIR/testtools/" "$TARGETDIR/testtools/" + +rm -rf "$WORKDIR" |