summaryrefslogtreecommitdiffstats
path: root/third_party/update.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:00 +0000
commit8daa83a594a2e98f39d764422bfbdbc62c9efd44 (patch)
tree4099e8021376c7d8c05bdf8503093d80e9c7bad0 /third_party/update.sh
parentInitial commit. (diff)
downloadsamba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.tar.xz
samba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.zip
Adding upstream version 2:4.20.0+dfsg.upstream/2%4.20.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/update.sh')
-rwxr-xr-xthird_party/update.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/third_party/update.sh b/third_party/update.sh
new file mode 100755
index 0000000..aa40184
--- /dev/null
+++ b/third_party/update.sh
@@ -0,0 +1,21 @@
+#!/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 zlib..."
+git clone git://git.samba.org/third_party/zlib "$WORKDIR/zlib"
+rm -rf "$WORKDIR/zlib/.git"
+rsync --exclude=wscript -avz --delete "$WORKDIR/zlib/" "$THIRD_PARTY_DIR/zlib/"
+
+echo "Updating pyiso8601..."
+hg clone https://bitbucket.org/micktwomey/pyiso8601 "$WORKDIR/pyiso8601"
+rm -rf "$WORKDIR/pyiso8601/.hg"
+rsync -avz --delete "$WORKDIR/pyiso8601/" "$THIRD_PARTY_DIR/pyiso8601/"
+
+rm -rf "$WORKDIR"