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)
7 # $BMBUILDDIR - directory to place resulting binary package tree
13 mkdir -p /tmp/bmchroots
18 function do_ubuntu() {
19 ./save.sh "/tmp/bmchroots/$1" "$2" "$3" \
20 ./chroot.sh cdfrey /var/chroot/$1 \
21 "$BMTARBALL make-deb.sh" \
22 /var/chroot/$1/home/cdfrey/barrychroot/bmbuild/results \
25 ./make-deb.sh "$BMTARBASE" \
31 # Build the Fedora RPM's
33 function do_fedora() {
34 ./save.sh "/tmp/bmchroots/$1" "$2" "$4" \
35 ./chroot.sh cdfrey "/var/chroot/$1" \
36 "$BMTARBALL make-bm-rpm.sh" \
37 /var/chroot/$1/home/cdfrey/rpmbuild/bmbuild/results \
44 /home/cdfrey/rpmbuild/bmbuild
49 do_ubuntu ubuntu1004 "$BMBUILDDIR/dists/ubuntu1004/main/binary-i386" "" \
50 "make -j2 debian-all deb-libtar"
51 # Ubuntu 11.04 (Natty) is also good for Mint 11
52 do_ubuntu ubuntu1104 "$BMBUILDDIR/dists/ubuntu1104/main/binary-i386" "" \
53 "make -j2 debian-all deb-libtar"
54 # Ubuntu 11.10 (Oneiric) should also be good for Mint 12
55 do_ubuntu ubuntu1110 "$BMBUILDDIR/dists/ubuntu1110/main/binary-i386" "" \
56 "make -j2 debian-all deb-evo3-latest deb-libtar"
57 do_ubuntu ubuntu1204 "$BMBUILDDIR/dists/ubuntu1204/main/binary-i386" "" \
58 "make -j2 debian-all deb-evo3-latest deb-libtar"
60 # Fedora and openSUSE use make 3.82, which is buggy and doesn't handle
61 # parallel builds safely all cases. So we can't use any -j options here.
62 # http://lists.gnu.org/archive/html/bug-make/2012-01/msg00042.html
64 "$BMBUILDDIR/dists/fedora16/i686/RPMS" \
65 "$BMBUILDDIR/dists/fedora16/source-i686/SRPMS" \
66 "" "make rpmclean && make rpm-all rpm-evo3-latest"
68 "$BMBUILDDIR/dists/fedora17/i686/RPMS" \
69 "$BMBUILDDIR/dists/fedora17/source-i686/SRPMS" \
70 "" "make rpmclean && make rpm-all rpm-evo3-latest"
71 do_fedora opensuse12.1 \
72 "$BMBUILDDIR/dists/opensuse12.1/i586/RPMS" \
73 "$BMBUILDDIR/dists/opensuse12.1/source-i586/SRPMS" \
74 "" "make rpmclean && make opensuse && make BARRY_GUISU=kdesu rpm-libtar rpm-all"
76 chown -R cdfrey:cdfrey "$BMBUILDDIR"