diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-03-31 03:19:18 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-03-31 03:19:18 +0200 |
commit | a8ac7fda573a924debf165d39eff3c1837240d4f (patch) | |
tree | 6085df961a5fbcc57a240d7065d2fc4a258cf170 /lib/update-external.sh | |
parent | e4af3afd7ae3e39218b42a42d39c2ec10be9a642 (diff) | |
download | samba-a8ac7fda573a924debf165d39eff3c1837240d4f.tar.gz samba-a8ac7fda573a924debf165d39eff3c1837240d4f.tar.bz2 samba-a8ac7fda573a924debf165d39eff3c1837240d4f.zip |
Put testtools directly under lib/ to make it easier to install from Samba 4.
Diffstat (limited to 'lib/update-external.sh')
-rwxr-xr-x | lib/update-external.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/update-external.sh b/lib/update-external.sh new file mode 100755 index 0000000000..7cf95f3fb8 --- /dev/null +++ b/lib/update-external.sh @@ -0,0 +1,19 @@ +#!/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 +for p in python/ filters/ perl/ +do + rsync -avz --delete "$WORKDIR/subunit/$p" "$TARGETDIR/subunit/$p" +done + +echo "Updating testtools..." +bzr export "$WORKDIR/testtools" lp:testtools +rsync -avz --delete "$WORKDIR/testtools/testtools/" "$TARGETDIR/testtools/" + +rm -rf "$WORKDIR" |