]> git.decadent.org.uk Git - dak.git/blob - scripts/nfu/get-w-b-db
byebye m68k
[dak.git] / scripts / nfu / get-w-b-db
1 #!/bin/bash
2
3 set -e
4
5 # list of architectures taken from
6 # http://buildd.debian.org/stats/
7
8 # For debugging, you can override the path using
9 # the WB_DB_DIR enviroment variable
10 if [ -z "$WB_DB_DIR" ]
11 then
12         WB_DB_DIR=/srv/ftp.debian.org/scripts/nfu
13 fi
14
15 cd $WB_DB_DIR || { echo "Failed to cd to $WB_DB_DIR" ; exit 1 ;}
16
17 for arch in alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc s390 sparc
18 do
19         rm -f $arch-all.txt
20         echo "Getting $arch-all.txt"
21         wget -q http://buildd.debian.org/stats/$arch-all.txt
22 done