summaryrefslogtreecommitdiff
path: root/lib/subunit
diff options
context:
space:
mode:
Diffstat (limited to 'lib/subunit')
-rwxr-xr-xlib/subunit/update.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/subunit/update.sh b/lib/subunit/update.sh
new file mode 100755
index 0000000000..6ef9859c82
--- /dev/null
+++ b/lib/subunit/update.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Pull in a new snapshot of Subunit from the upstream bzr branch
+
+TARGETDIR="`dirname $0`"
+WORKDIR="`mktemp -d`"
+bzr branch lp:subunit "$WORKDIR/subunit"
+
+for p in python filters;
+do
+ rsync -avz --delete "$WORKDIR/subunit/$p/" "$TARGETDIR/$p/"
+done
+
+rm -rf "$WORKDIR"