aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-01-03 10:06:50 +0000
committerKoen Kooi <koen@openembedded.org>2008-01-03 10:06:50 +0000
commit90a39de733034de5bba12b851638a6946db0abbe (patch)
tree50bc3669e5aef708c9c681ad9ea4351112b88b90 /contrib
parentb745b88eb2245752f4610d963e7aadf325ae80b1 (diff)
downloadopenembedded-90a39de733034de5bba12b851638a6946db0abbe.tar.gz
contrib: upload-packages.sh: adapted superfeed.sh to upload packages for the 2007.12 release
* for use with autobuilders with small bandwidth
Diffstat (limited to 'contrib')
-rw-r--r--contrib/angstrom/upload-packages.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/contrib/angstrom/upload-packages.sh b/contrib/angstrom/upload-packages.sh
new file mode 100644
index 0000000000..554d787e25
--- /dev/null
+++ b/contrib/angstrom/upload-packages.sh
@@ -0,0 +1,35 @@
+#! /bin/sh
+# MIT Licensed
+# Initial version by Graeme 'XorA' Gregory, Further changes by Koen Kooi
+
+# Run this from inside ${DEPLOY_DIR} e.g. tmp/deploy/glibc/
+
+# Angstrom webserver
+REMOTEM=angstrom@linuxtogo.org
+
+# Feed dir we want to upload to
+REMOTED=website/feeds/2007/ipk/glibc
+
+# create upload dir
+mkdir -p upload-queue || true
+
+# Find and delete morgue dirs, we don't need them
+find ipk/ -name "morgue" -exec rm -rf \{\} \;
+
+# Copy all packages to an upload queue
+find ipk/ -name "*.ipk" -exec cp \{\} upload-queue/ \;
+
+# Find file already present on webserver
+ssh $REMOTEM "find $REMOTED/ -name "*.ipk" -exec basename \{\} \;" > /tmp/files-remote
+ls upload-queue/ | grep -v morgue >/tmp/files-local
+
+# Check for files already present on webserver
+cat /tmp/files-remote /tmp/files-local | sort | uniq -u >/tmp/files-uniq
+cat /tmp/files-uniq /tmp/files-local | sort | uniq -d > /tmp/files-trans
+
+# Copy over non-duplicate files
+rsync -vz --files-from=/tmp/files-trans upload-queue/ $REMOTEM:$REMOTED/unsorted/
+
+# Clean up temporary files
+rm /tmp/files-remote /tmp/files-local /tmp/files-uniq /tmp/files-trans
+