build: lib/util/string_wrappers.h: fix optimisation check for clang
[Samba.git] / lib / update-external.sh
blob95e33bc4b9d263dbc91bdc283eb5c49da2e88c14
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 # Preserve wscript file
16 cp "$LIBDIR/subunit/c/wscript" "$WORKDIR/subunit/c/wscript"
17 rsync -avz --delete "$WORKDIR/subunit/" "$LIBDIR/subunit/"
19 echo "Updating testtools..."
20 git clone git://github.com/testing-cabal/testtools "$WORKDIR/testtools"
21 rm -rf "$WORKDIR/testtools/.git"
22 rsync -avz --delete "$WORKDIR/testtools/" "$LIBDIR/testtools/"
24 echo "Updating dnspython..."
25 git clone git://www.dnspython.org/dnspython.git "$WORKDIR/dnspython"
26 rm -rf "$WORKDIR/dnspython/.git"
27 rsync -avz --delete "$WORKDIR/dnspython/" "$LIBDIR/dnspython/"
29 echo "Updating pep8..."
30 git clone git://github.com/jcrocholl/pep8 "$WORKDIR/pep8"
31 rm -rf "$WORKDIR/pep8/.git"
32 rsync -avz --delete "$WORKDIR/pep8/" "$LIBDIR/pep8/"
34 echo "Updating zlib..."
35 git clone git://github.com/madler/zlib "$WORKDIR/zlib"
36 rm -rf "$WORKDIR/zlib/.git"
37 rsync --exclude=wscript -avz --delete "$WORKDIR/zlib/" "$THIRD_PARTY_DIR/zlib/"
39 rm -rf "$WORKDIR"