maint: added ubuntu 8.04, minus akonadi/kde, to binary-meta release builds
[barry/progweb.git] / maintainer / bmchroots
blob2096afad71ea1ab5528cc7fa03fa16c87bba061e
2 # This script is run from the top level scripts.  You can rely on
3 # the following environment variables being set:
5 #    $BMTARBALL  - relative path to the release source tarball (bz2)
6 #    $BMTARBASE  - basename of the source tarball (bz2)
9 set -e
11 rm -rf /tmp/bmchroots
12 mkdir -p /tmp/bmchroots
15 # Build the DEB's
17 function do_ubuntu() {
18         ./save.sh "/tmp/bmchroots/$1" "$2" "$3" \
19                 ./chroot.sh cdfrey /var/chroot/$1 \
20                         "$BMTARBALL make-deb.sh" \
21                         /var/chroot/$1/home/cdfrey/barrychroot/bmbuild/results \
22                         /tmp/bmchroots/$1 \
23                         cdfrey \
24                 ./make-deb.sh "$BMTARBASE" \
25                         "$4" \
26                         bmbuild bmbuild
30 # Build the Fedora RPM's
32 function do_fedora() {
33         ./save.sh "/tmp/bmchroots/$1" "$2" "$4" \
34                 ./chroot.sh cdfrey "/var/chroot/$1" \
35                         "$BMTARBALL make-bm-rpm.sh" \
36                         /var/chroot/$1/home/cdfrey/rpmbuild/bmbuild/results \
37                         /tmp/bmchroots/$1 \
38                         cdfrey \
39                 ./make-bm-rpm.sh \
40                         "$BMTARBASE" \
41                         "$5" \
42                         /home/cdfrey \
43                         /home/cdfrey/rpmbuild/bmbuild
44         mkdir -p "$3"
45         mv "$2"/*src.rpm "$3"
48 # Ubuntu 8.04 has trouble building KDEPIM / akonadi-sync, so skip those
49 do_ubuntu ubuntu804 bmbuild/dists/ubuntu804/main/binary-i386 "" \
50         "touch deb-akonadi-latest deb-kdepim-0.2x && make -j2 debian-all"
51 do_ubuntu ubuntu1004 bmbuild/dists/ubuntu1004/main/binary-i386 "" \
52         "make -j2 debian-all"
53 do_fedora fedora14 \
54         bmbuild/dists/fedora14/i386/RPMS \
55         bmbuild/dists/fedora14/source-i386/SRPMS \
56         "" "make -j2 rpm-all"
58 chown -R cdfrey:cdfrey bmbuild
61 # Cleanup
63 rm -rf /tmp/bmchroots