]> git.decadent.org.uk Git - dak.git/blob - cron.buildd
Add print_exc(), debug traceback printing
[dak.git] / cron.buildd
1 #! /bin/sh
2 #
3 # Executed hourly via cron, out of katie's crontab.
4
5 ARCHS="alpha arm hppa i386 ia64 m68k mips mipsel powerpc sparc s390"
6
7 set -e
8 export SCRIPTVARS=/org/ftp.debian.org/katie/vars
9 . $SCRIPTVARS
10
11 LOCKFILE="/org/wanna-build/tmp/DB_Maintenance_In_Progress"
12
13 if [ ! -e "$ftpdir/Archive_Maintenance_In_Progress" ]; then
14         if lockfile -! -r3 $LOCKFILE; then
15         cleanup() {
16                 rm -f "$LOCKFILE"
17         }
18         trap cleanup 0
19         cd $overridedir
20         denise &>/dev/null
21         rm -f override.sid.all3
22         for i in main contrib non-free main.debian-installer; do cat override.sid.$i >> override.sid.all3; done
23         cd $masterdir
24         apt-ftparchive -qq generate apt.conf.buildd
25         cd /org/incoming.debian.org/buildd
26         for a in $ARCHS; do
27                 quinn-diff -a /org/buildd.debian.org/web/quinn-diff/Packages-arch-specific -A $a 2>/dev/null | grep -v ^non-free | wanna-build -b $a/build-db --merge-partial-quinn 2> /dev/null
28                 wanna-build -A $a -b $a/build-db --merge-packages Packages 2>/dev/null
29         done
30         fi
31 fi