nwrap: Fix resolving hostnames with a trailing dot.
[sfrench/samba-autobuild/.git] / lib / update-external.sh
index 7cf95f3fb8cedd720c2abb47023ffe45c78fd580..ea563baeeaa16d6b98d011c752d91161f1ee14b4 100755 (executable)
@@ -7,13 +7,22 @@ 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
+# Preserve wscript file
+cp "$TARGETDIR/subunit/c/wscript" "$WORKDIR/subunit/c/wscript"
+rsync -avz --delete "$WORKDIR/subunit/" "$TARGETDIR/subunit/"
 
 echo "Updating testtools..."
 bzr export "$WORKDIR/testtools" lp:testtools 
-rsync -avz --delete "$WORKDIR/testtools/testtools/" "$TARGETDIR/testtools/"
+rsync -avz --delete "$WORKDIR/testtools/" "$TARGETDIR/testtools/"
+
+echo "Updating dnspython..."
+git clone git://www.dnspython.org/dnspython.git "$WORKDIR/dnspython"
+rm -rf "$WORKDIR/dnspython/.git"
+rsync -avz --delete "$WORKDIR/dnspython/" "$TARGETDIR/dnspython/"
+
+echo "Updating pep8..."
+git clone git://github.com/jcrocholl/pep8 "$WORKDIR/pep8"
+rm -rf "$WORKDIR/pep8/.git"
+rsync -avz --delete "$WORKDIR/pep8/" "$TARGETDIR/pep8/"
 
 rm -rf "$WORKDIR"