summaryrefslogtreecommitdiff
path: root/lib/subunit/update.sh
blob: f8265b188cdc714491285c4f7d11ef2d3f7b9eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Pull in a new snapshot of Subunit from the upstream bzr branch

TARGETDIR="`dirname $0`"
WORKDIR="`mktemp -d`"
bzr export "$WORKDIR/subunit" lp:subunit 
bzr export "$WORKDIR/testtools" lp:testtools 

for p in python/ filters/tap2subunit;
do
	rsync -avz --delete "$WORKDIR/subunit/$p" "$TARGETDIR/$p"
done

rsync -avz --delete "$WORKDIR/testtools/testtools/" "$TARGETDIR/python/testtools/"

rm -rf "$WORKDIR"