]> git.donarmstrong.com Git - wannabuild.git/blob - triggers/trigger.edu
improve help message
[wannabuild.git] / triggers / trigger.edu
1 #!/bin/bash
2 # vim:set et ts=4 sw=4 ft=bash ai:
3
4 ARCHIVE="debian-edu"
5 SUITES="lenny etch squeeze"
6 ARCHES="i386 amd64 powerpc"
7
8 . /org/wanna-build/triggers/common
9
10 exec >> /org/wanna-build/db/merge.$ARCHIVE.log 2>&1
11
12 if [ -f /org/wanna-build/NO-TRIGGERS ]
13 then
14     echo Trigger for $ARCHIVE skipped due to NO-TRIGGERS, aborting. >&2
15     exit 0
16 fi
17
18 echo "`date`: Running trigger for $ARCHIVE ..."
19
20 main() {
21     set -eE
22     trap cleanup ERR TERM HUP INT QUIT
23
24     ensure_lock
25     ensure_workdir
26
27     # Fetch the most recent Packages and Sources files.
28     sync.sh debian
29     sync.sh $ARCHIVE nolock
30
31     for suite in $SUITES
32     do
33         base_suite=$suite
34         SOURCES="${ARCHIVE_BASE}/archive/${suite}-test/local/source/Sources.gz"
35         PACKAGES="${ARCHIVE_BASE}/archive/${suite}-test/local/binary-%ARCH%/Packages.gz"
36         PACKAGES_BASE="${ARCHIVE_MAIN}/archive/${base_suite}/{main,contrib}/binary-%ARCH%/Packages.gz"
37         PACKAGES_BASE="${PACKAGES_BASE} ${ARCHIVE_BASE}/archive/${suite}/local/binary-%ARCH%/Packages.gz"
38         trigger_wb_update_with_secondary "$base_suite" "$ARCHES" "$PACKAGES_BASE" "$SOURCES" "$PACKAGES" "$suite-edu"
39     done
40
41     cleanup
42 }
43
44 main
45 exit 0
46