get-w-b-db 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. # Copyright (C) 2008 Joachim Breitner <nomeata@debian.org>
  3. # Copyright (C) 2011 Joerg Jaspert <joerg@debian.org>
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License as
  7. # published by the Free Software Foundation; version 2.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. # exit on errors
  18. set -e
  19. # make sure to only use defined variables
  20. set -u
  21. # ERR traps should be inherited from functions too. (And command
  22. # substitutions and subshells and whatnot, but for us the functions is
  23. # the important part here)
  24. set -E
  25. # import the general variable set.
  26. export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
  27. . $SCRIPTVARS
  28. # For debugging, you can override the path using
  29. # the WB_DB_DIR enviroment variable
  30. WB_DB_DIR=${WB_DB_DIR:-${scriptdir}/nfu}
  31. for arch in $(dak admin s-a list-arch unstable); do
  32. 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}"
  33. done