[PATCH 10/13] Move update_external.sh script to third_party/.

Jelmer Vernooij jelmer at samba.org
Sat Nov 15 12:17:05 MST 2014


Change-Id: I46c0832cf3c8bd113e11b6deb92c3784213d3979
Signed-off-by: Jelmer Vernooij <jelmer at samba.org>
---
 lib/update-external.sh | 48 ------------------------------------------------
 third_party/update.sh  | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 48 deletions(-)
 delete mode 100755 lib/update-external.sh
 create mode 100755 third_party/update.sh

diff --git a/lib/update-external.sh b/lib/update-external.sh
deleted file mode 100755
index 874d545..0000000
--- a/lib/update-external.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/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
-
-# Third party directory
-THIRD_PARTY_DIR="`dirname $0`/../third_party"
-# Library directory where projects live that haven't been migrated to
-# $THIRD_PARTY_DIR yet.
-WORKDIR="`mktemp -d`"
-
-echo "Updating subunit..."
-git clone git://github.com/testing-cabal/subunit "$WORKDIR/subunit"
-rm -rf "$WORKDIR/subunit/.git"
-# Preserve wscript file
-cp "$THIRD_PARTY_DIR/subunit/c/wscript" "$WORKDIR/subunit/c/wscript"
-rsync -avz --delete "$WORKDIR/subunit/" "$THIRD_PARTY_DIR/subunit/"
-
-echo "Updating testtools..."
-git clone git://github.com/testing-cabal/testtools "$WORKDIR/testtools"
-rm -rf "$WORKDIR/testtools/.git"
-rsync -avz --delete "$WORKDIR/testtools/" "$THIRD_PARTY_DIR/testtools/"
-
-echo "Updating dnspython..."
-git clone git://www.dnspython.org/dnspython.git "$WORKDIR/dnspython"
-rm -rf "$WORKDIR/dnspython/.git"
-rsync -avz --delete "$WORKDIR/dnspython/" "$THIRD_PARTY_DIR/dnspython/"
-
-echo "Updating pep8..."
-git clone git://github.com/jcrocholl/pep8 "$WORKDIR/pep8"
-rm -rf "$WORKDIR/pep8/.git"
-rsync -avz --delete "$WORKDIR/pep8/" "$THIRD_PARTY_DIR/pep8/"
-
-echo "Updating zlib..."
-git clone git://github.com/madler/zlib "$WORKDIR/zlib"
-rm -rf "$WORKDIR/zlib/.git"
-rsync --exclude=wscript -avz --delete "$WORKDIR/zlib/" "$THIRD_PARTY_DIR/zlib/"
-
-echo "Updating extra..."
-git clone git://github.com/testing-cabal/extras "$WORKDIR/extras"
-rm -rf "$WORKDIR/extras/.git"
-rsync -avz --delete "$WORKDIR/extras/" "$THIRD_PARTY_DIR/python-extras/"
-
-echo "Updating mimeparse..."
-svn co http://mimeparse.googlecode.com/svn/trunk/ "$WORKDIR/mimeparse"
-rm -rf "$WORKDIR/mimeparse/.svn"
-rsync -avz --delete "$WORKDIR/mimeparse/" "$THIRD_PARTY_DIR/mimeparse/"
-
-rm -rf "$WORKDIR"
diff --git a/third_party/update.sh b/third_party/update.sh
new file mode 100755
index 0000000..18ea56b
--- /dev/null
+++ b/third_party/update.sh
@@ -0,0 +1,48 @@
+#!/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
+
+# Third party directory
+THIRD_PARTY_DIR="`dirname $0`"
+# Library directory where projects live that haven't been migrated to
+# $THIRD_PARTY_DIR yet.
+WORKDIR="`mktemp -d`"
+
+echo "Updating subunit..."
+git clone git://github.com/testing-cabal/subunit "$WORKDIR/subunit"
+rm -rf "$WORKDIR/subunit/.git"
+# Preserve wscript file
+cp "$THIRD_PARTY_DIR/subunit/c/wscript" "$WORKDIR/subunit/c/wscript"
+rsync -avz --delete "$WORKDIR/subunit/" "$THIRD_PARTY_DIR/subunit/"
+
+echo "Updating testtools..."
+git clone git://github.com/testing-cabal/testtools "$WORKDIR/testtools"
+rm -rf "$WORKDIR/testtools/.git"
+rsync -avz --delete "$WORKDIR/testtools/" "$THIRD_PARTY_DIR/testtools/"
+
+echo "Updating dnspython..."
+git clone git://www.dnspython.org/dnspython.git "$WORKDIR/dnspython"
+rm -rf "$WORKDIR/dnspython/.git"
+rsync -avz --delete "$WORKDIR/dnspython/" "$THIRD_PARTY_DIR/dnspython/"
+
+echo "Updating pep8..."
+git clone git://github.com/jcrocholl/pep8 "$WORKDIR/pep8"
+rm -rf "$WORKDIR/pep8/.git"
+rsync -avz --delete "$WORKDIR/pep8/" "$THIRD_PARTY_DIR/pep8/"
+
+echo "Updating zlib..."
+git clone git://github.com/madler/zlib "$WORKDIR/zlib"
+rm -rf "$WORKDIR/zlib/.git"
+rsync --exclude=wscript -avz --delete "$WORKDIR/zlib/" "$THIRD_PARTY_DIR/zlib/"
+
+echo "Updating extra..."
+git clone git://github.com/testing-cabal/extras "$WORKDIR/extras"
+rm -rf "$WORKDIR/extras/.git"
+rsync -avz --delete "$WORKDIR/extras/" "$THIRD_PARTY_DIR/python-extras/"
+
+echo "Updating mimeparse..."
+svn co http://mimeparse.googlecode.com/svn/trunk/ "$WORKDIR/mimeparse"
+rm -rf "$WORKDIR/mimeparse/.svn"
+rsync -avz --delete "$WORKDIR/mimeparse/" "$THIRD_PARTY_DIR/mimeparse/"
+
+rm -rf "$WORKDIR"
-- 
2.1.3



More information about the samba-technical mailing list