]> git.decadent.org.uk Git - dak.git/blobdiff - scripts/nfu/get-w-b-db
Merge from Joachim
[dak.git] / scripts / nfu / get-w-b-db
diff --git a/scripts/nfu/get-w-b-db b/scripts/nfu/get-w-b-db
new file mode 100755 (executable)
index 0000000..c34e5e3
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+set -e
+
+# list of architectures taken from
+# http://buildd.debian.org/stats/
+
+# For debugging, you can override the path using
+# the WB_DB_DIR enviroment variable
+if [ -z "$WB_DB_DIR" ]
+then
+       WB_DB_DIR=/srv/ftp.debian.org/scripts/nfu
+fi
+
+cd $WB_DB_DIR || { echo "Failed to cd to $WB_DB_DIR" ; exit 1 ;}
+
+for arch in alpha amd64 arm armel hppa i386 ia64 m68k mips mipsel powerpc s390 sparc
+do
+       rm -f $arch-all.txt
+       echo "Getting $arch-all.txt"
+       wget -q http://buildd.debian.org/stats/$arch-all.txt
+done