Do not use popt_common.h in dlz_bind9
[Samba.git] / lib / update-external.sh
blob8e690596790ea3af63304b9c0ca8c82410741fc1
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 dnspython..."
13 git clone git://www.dnspython.org/dnspython.git "$WORKDIR/dnspython"
14 rm -rf "$WORKDIR/dnspython/.git"
15 rsync -avz --delete "$WORKDIR/dnspython/" "$LIBDIR/dnspython/"
17 echo "Updating pep8..."
18 git clone git://github.com/jcrocholl/pep8 "$WORKDIR/pep8"
19 rm -rf "$WORKDIR/pep8/.git"
20 rsync -avz --delete "$WORKDIR/pep8/" "$LIBDIR/pep8/"
22 echo "Updating zlib..."
23 git clone git://github.com/madler/zlib "$WORKDIR/zlib"
24 rm -rf "$WORKDIR/zlib/.git"
25 rsync --exclude=wscript -avz --delete "$WORKDIR/zlib/" "$THIRD_PARTY_DIR/zlib/"
27 echo "Updating pyiso8601..."
28 hg clone https://bitbucket.org/micktwomey/pyiso8601 "$WORKDIR/pyiso8601"
29 rm -rf "$WORKDIR/pyiso8601/.hg"
30 rsync -avz --delete "$WORKDIR/pyiso8601/" "$THIRD_PARTY_DIR/pyiso8601/"
32 rm -rf "$WORKDIR"