]> git.decadent.org.uk Git - dak.git/blob - config/debian/cron.daily
* scripts/debian/link_morgue.sh: New script, converting morgue/ into a
[dak.git] / config / debian / cron.daily
1 #! /bin/bash
2 #
3 # Run daily via cron, out of dak's crontab.
4
5 set -e
6 set -u
7 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
8 . $SCRIPTVARS
9
10 # common functions are "outsourced"
11 . "${configdir}/common"
12
13 ################################################################################
14
15 TMPFILE=$( mktemp -p ${TMPDIR} )
16
17 function cleanup {
18     ERRVAL=$?
19     rm -f ${TMPFILE}
20     exit ${ERRVAL}
21 }
22 trap cleanup SIGHUP SIGINT SIGPIPE SIGTERM EXIT ERR
23
24 # log to dinstall's logfile instead of sending email
25 PROGRAM="cron.daily"
26 LOGFILE="$logdir/dinstall.log"
27 exec >> "$LOGFILE" 2>&1
28
29 # get the latest list of wnpp bugs and their source packages
30 wget -q -O${TMPFILE} http://qa.debian.org/data/bts/wnpp_rm
31 chmod go+r ${TMPFILE}
32 mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
33
34 # Update wanna-build dump
35 echo "Update wanna-build database dump"
36 $base/dak/scripts/nfu/get-w-b-db
37
38 reports
39
40 clean_debbugs
41
42 # Generate list of override disparities
43 dak override-disparity | gzip -9 > ${webdir}/override-disparity.gz
44
45 ${scriptsdir}/link_morgue.sh
46
47 ################################################################################