]> git.decadent.org.uk Git - dak.git/blob - config/debian/cron.daily
clean the debbugs version track archive
[dak.git] / config / debian / cron.daily
1 #!/bin/sh
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 # get the latest list of wnpp bugs and their source packages
25 wget -q -O${TMPFILE} http://qa.debian.org/data/bts/wnpp_rm
26 chmod go+r ${TMPFILE}
27 mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
28
29 reports
30
31 clean_debbugs
32
33 ################################################################################