2 # No way I try to deal with a crippled sh just for POSIX foo.
4 # Copyright (C) 2009 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
24 # import the general variable set.
25 export SCRIPTVARS=/srv/ftp.debian.org/dak/config/debian/vars
29 LOCKFILE="$lockdir/unchecked.lock"
30 NOTICE="$lockdir/daily.lock"
32 if [ -e $NOTICE ]; then
36 ########################################################################
38 ########################################################################
39 # common functions are "outsourced"
40 . "${configdir}/common"
42 STAMP=$(date "+%Y%m%d%H%M")
46 if [ ! -z "$LOCKDAILY" ]; then
51 function do_buildd () {
52 if lockfile -r3 $NOTICE; then
54 psql projectb -A -t -q -c "SELECT filename FROM queue_build WHERE queue = 0 AND suite = 5 AND in_queue = true AND filename ~ 'd(sc|eb)$'" > $dbdir/dists/unstable_accepted.list
56 dak make-overrides &>/dev/null
57 rm -f override.sid.all3 override.sid.all3.src
58 for i in main contrib non-free main.debian-installer; do
59 cat override.sid.$i >> override.sid.all3
60 if [ "$i" != "main.debian-installer" ]; then
61 cat override.sid.$i.src >> override.sid.all3.src
66 . $configdir/cron.buildd
70 ########################################################################
71 # the actual unchecked functions follow #
72 ########################################################################
76 # only run one cron.unchecked
77 lockfile -r3 $LOCKFILE || exit 0
82 if [ ! -z "$changes" ]; then