Add script for updating the copy of subunit.
[Samba/eduardoll.git] / lib / subunit / update.sh
blob6ef9859c82de642f8ddbed423f3ef3d639448d90
1 #!/bin/sh
2 # Pull in a new snapshot of Subunit from the upstream bzr branch
4 TARGETDIR="`dirname $0`"
5 WORKDIR="`mktemp -d`"
6 bzr branch lp:subunit "$WORKDIR/subunit"
8 for p in python filters;
9 do
10 rsync -avz --delete "$WORKDIR/subunit/$p/" "$TARGETDIR/$p/"
11 done
13 rm -rf "$WORKDIR"