tests/sam: Remove unnecessary calls for third party module imports.
[Samba.git] / lib / update-external.sh
blobd01722e1642d394ab80f7dcf6a41d442c2df00e0
1 #!/bin/sh
2 # Pull in a new snapshot of external projects that are included in
3 # our source tree for users that don't have them installed on their system
5 # Third party directory
6 THIRD_PARTY_DIR="`dirname $0`/../third_party"
7 # Library directory where projects live that haven't been migrated to
8 # $THIRD_PARTY_DIR yet.
9 LIBDIR="`dirname $0`"
10 WORKDIR="`mktemp -d`"
12 echo "Updating subunit..."
13 git clone git://github.com/testing-cabal/subunit "$WORKDIR/subunit"
14 rm -rf "$WORKDIR/subunit/.git"
15 rsync -avz --delete "$WORKDIR/subunit/" "$LIBDIR/subunit/"
17 echo "Updating testtools..."
18 git clone git://github.com/testing-cabal/testtools "$WORKDIR/testtools"
19 rm -rf "$WORKDIR/testtools/.git"
20 rsync -avz --delete "$WORKDIR/testtools/" "$LIBDIR/testtools/"
22 echo "Updating dnspython..."
23 git clone git://www.dnspython.org/dnspython.git "$WORKDIR/dnspython"
24 rm -rf "$WORKDIR/dnspython/.git"
25 rsync -avz --delete "$WORKDIR/dnspython/" "$LIBDIR/dnspython/"
27 echo "Updating pep8..."
28 git clone git://github.com/jcrocholl/pep8 "$WORKDIR/pep8"
29 rm -rf "$WORKDIR/pep8/.git"
30 rsync -avz --delete "$WORKDIR/pep8/" "$LIBDIR/pep8/"
32 echo "Updating zlib..."
33 git clone git://github.com/madler/zlib "$WORKDIR/zlib"
34 rm -rf "$WORKDIR/zlib/.git"
35 rsync --exclude=wscript -avz --delete "$WORKDIR/zlib/" "$THIRD_PARTY_DIR/zlib/"
37 echo "Updating extra..."
38 git clone git://github.com/testing-cabal/extras "$WORKDIR/extras"
39 rm -rf "$WORKDIR/extras/.git"
40 rsync -avz --delete "$WORKDIR/extras/" "$LIBDIR/extras/"
42 echo "Updating extra..."
43 git clone git://github.com/testing-cabal/extras "$WORKDIR/extras"
44 rm -rf "$WORKDIR/extras/.git"
45 rsync -avz --delete "$WORKDIR/extras/" "$LIBDIR/extras/"
47 echo "Updating mimeparse..."
48 svn co http://mimeparse.googlecode.com/svn/trunk/ "$WORKDIR/mimeparse"
49 rm -rf "$WORKDIR/mimeparse/.svn"
50 rsync -avz --delete "$WORKDIR/mimeparse/" "$LIBDIR/mimeparse/"
52 rm -rf "$WORKDIR"