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