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/bmremote
19 function do_ubuntu() {
20 ./save.sh /tmp/bmremote/$1 "$2" "$3" \
21 ./remote.sh root barrybuild.netdirect.ca 22 \
22 "$BMTARBALL make-deb.sh chroot.sh" \
25 ./chroot.sh cdfrey /home/chroot/$1 \
26 "$BMTARBASE make-deb.sh" \
27 /home/chroot/$1/home/cdfrey/barrychroot/bmbuild/results \
30 ./make-deb.sh "$BMTARBASE" \
35 # Build on the Debian squeeze host system too
36 function do_debian() {
37 ./save.sh /tmp/bmremote/squeeze64 "$BMBUILDDIR/dists/squeeze/main/binary-amd64" "" \
38 ./remote.sh cdfrey barrybuild.netdirect.ca 22 \
39 "$BMTARBALL make-deb.sh" \
40 /home/cdfrey/barryremote/bmbuild/results \
41 /tmp/bmremote/squeeze64 \
42 ./make-deb.sh "$BMTARBASE" \
43 "make -j16 debian-all" \
49 # Build the Fedora RPM's
51 # ./rpm.sh <path_to_chroot> <tag>
54 function do_fedora() {
55 ./save.sh "/tmp/bmremote/$1" "$2" "$4" \
56 ./remote.sh root barrybuild.netdirect.ca 22 \
57 "$BMTARBALL make-bm-rpm.sh chroot.sh" \
60 ./chroot.sh cdfrey /home/chroot/$1 \
61 "$BMTARBASE make-bm-rpm.sh" \
62 /home/chroot/$1/home/cdfrey/rpmbuild/bmbuild/results \
69 /home/cdfrey/rpmbuild/bmbuild
74 # Ubuntu 8.04 has trouble building KDEPIM / akonadi-sync, so skip those
75 do_ubuntu ubuntu804 "$BMBUILDDIR/dists/ubuntu804/main/binary-amd64" "" \
76 "touch deb-akonadi-latest deb-kdepim-0.2x && make -j16 debian-all"
77 do_ubuntu ubuntu1004 "$BMBUILDDIR/dists/ubuntu1004/main/binary-amd64" "" \
78 "make -j16 debian-all"
79 # Ubuntu 11.04 (Natty) is also good for Mint 11
80 do_ubuntu ubuntu1104 "$BMBUILDDIR/dists/ubuntu1104/main/binary-amd64" "" \
81 "make -j16 debian-all"
82 # Ubuntu 11.10 (Natty) should also be good for Mint 12
83 do_ubuntu ubuntu1110 "$BMBUILDDIR/dists/ubuntu1110/main/binary-amd64" "" \
84 "make -j16 debian-all"
87 # Fedora and openSUSE use make 3.82, which is buggy and doesn't handle
88 # parallel builds safely all cases. So we can't use any -j options here.
89 # http://lists.gnu.org/archive/html/bug-make/2012-01/msg00042.html
91 "$BMBUILDDIR/dists/fedora14/x86_64/RPMS" \
92 "$BMBUILDDIR/dists/fedora14/source-x86_64/SRPMS" "" \
93 "make LIB_SUFFIX=64 rpm-all"
95 "$BMBUILDDIR/dists/fedora16/x86_64/RPMS" \
96 "$BMBUILDDIR/dists/fedora16/source-x86_64/SRPMS" "" \
97 "make LIB_SUFFIX=64 rpm-all"
98 do_fedora opensuse12.1 \
99 "$BMBUILDDIR/dists/opensuse12.1/x86_64/RPMS" \
100 "$BMBUILDDIR/dists/opensuse12.1/source-x86_64/SRPMS" "" \
101 "make LIB_SUFFIX=64 rpm-libtar rpm-all"
108 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/bmchroots"