3 # Copyright (C) 2008 Joachim Breitner <nomeata@debian.org>
4 # Copyright (C) 2011 Joerg Jaspert <joerg@debian.org>
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; version 2.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 # make sure to only use defined variables
23 # ERR traps should be inherited from functions too. (And command
24 # substitutions and subshells and whatnot, but for us the functions is
25 # the important part here)
28 # import the general variable set.
29 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
32 # For debugging, you can override the path using
33 # the WB_DB_DIR enviroment variable
34 WB_DB_DIR=${WB_DB_DIR:-${scriptdir}/nfu}
36 for arch in $(dak admin s-a list-arch unstable); do
37 wget -q --ca-directory=/etc/ssl/ca-debian https://buildd.debian.org/stats/$arch-all.txt -O ${WB_DB_DIR}/${arch}-all.txt || echo "No w-b dump for ${arch}"