X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fnfu%2Fget-w-b-db;fp=scripts%2Fnfu%2Fget-w-b-db;h=c34e5e388749e55c9b9cde022022d3e380f17b0b;hb=a9cd0a9b4d5fc20932b3818bf4e45fbffebc9fc5;hp=0000000000000000000000000000000000000000;hpb=eb12fb9bda328b5c63a21a9a915d284cd1c55a17;p=dak.git diff --git a/scripts/nfu/get-w-b-db b/scripts/nfu/get-w-b-db new file mode 100755 index 00000000..c34e5e38 --- /dev/null +++ b/scripts/nfu/get-w-b-db @@ -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