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 do_ubuntu ubuntu1004 "$BMBUILDDIR/dists/ubuntu1004/main/binary-amd64" "" \
75 "make -j16 debian-all deb-libtar"
76 # Ubuntu 11.04 (Natty) is also good for Mint 11
77 do_ubuntu ubuntu1104 "$BMBUILDDIR/dists/ubuntu1104/main/binary-amd64" "" \
78 "make -j16 debian-all deb-libtar"
79 # Ubuntu 11.10 (Oneric) should also be good for Mint 12
80 do_ubuntu ubuntu1110 "$BMBUILDDIR/dists/ubuntu1110/main/binary-amd64" "" \
81 "make -j16 debian-all deb-evo3-latest deb-libtar"
82 do_ubuntu ubuntu1204 "$BMBUILDDIR/dists/ubuntu1204/main/binary-amd64" "" \
83 "make -j16 debian-all deb-evo3-latest deb-libtar"
86 # Fedora and openSUSE use make 3.82, which is buggy and doesn't handle
87 # parallel builds safely all cases. So we can't use any -j options here.
88 # http://lists.gnu.org/archive/html/bug-make/2012-01/msg00042.html
90 "$BMBUILDDIR/dists/fedora16/x86_64/RPMS" \
91 "$BMBUILDDIR/dists/fedora16/source-x86_64/SRPMS" "" \
92 "make rpmclean && make LIB_SUFFIX=64 rpm-all rpm-evo3-latest"
94 "$BMBUILDDIR/dists/fedora17/x86_64/RPMS" \
95 "$BMBUILDDIR/dists/fedora17/source-x86_64/SRPMS" "" \
96 "make rpmclean && make LIB_SUFFIX=64 rpm-all rpm-evo3-latest"
97 do_fedora opensuse12.1 \
98 "$BMBUILDDIR/dists/opensuse12.1/x86_64/RPMS" \
99 "$BMBUILDDIR/dists/opensuse12.1/source-x86_64/SRPMS" "" \
100 "make rpmclean && make opensuse && make LIB_SUFFIX=64 BARRY_GUISU=kdesu rpm-libtar rpm-all"
107 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/bmchroots"