summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-12-31 18:31:23 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-01-16 19:53:49 +1300
commit664b74d3669841059224fdf2fc94b53a36613888 (patch)
tree5bb4b3e5ecef31e5aa9b3a724d096526879cf0f9
parent53d7c4c7a27ec351638b35458919c8a267b794db (diff)
downloadsamba-664b74d3669841059224fdf2fc94b53a36613888.tar.gz
samba-664b74d3669841059224fdf2fc94b53a36613888.tar.bz2
samba-664b74d3669841059224fdf2fc94b53a36613888.zip
Add script for updating the copy of 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"