2 # This script is run from the top level scripts. You can rely on
3 # the following environment variables being set:
5 # $BARRYTARBALL - relative path to the release source tarball (bz2)
6 # $BARRYTARBASE - basename of the source tarball (bz2)
7 # $BARRYBUILDDIR - directory where results are stored
12 rm -rf /tmp/barryremote
13 mkdir -p /tmp/barryremote
19 function do_ubuntu() {
20 ./save.sh "/tmp/barryremote/$1" "$2" "$3" \
21 ./remote.sh root barrybuild.netdirect.ca 22 \
22 "$BARRYTARBALL make-deb.sh chroot.sh" \
23 /tmp/barrychroots/$1 \
25 ./chroot.sh cdfrey /home/chroot/$1 \
26 "$BARRYTARBASE make-deb.sh" \
27 /home/chroot/$1/home/cdfrey/barrychroot/results \
28 /tmp/barrychroots/$1 \
30 ./make-deb.sh "$BARRYTARBASE" \
31 "fakeroot -- debian/rules binary os22-binary"
34 do_ubuntu ubuntu1004 $BARRYBUILDDIR/ubuntu1004-64 ubuntu1004
36 # Build on the Debian squeeze host system too
37 ./save.sh /tmp/barryremote/squeeze $BARRYBUILDDIR/squeeze-64 squeeze \
38 ./remote.sh cdfrey barrybuild.netdirect.ca 22 \
39 "$BARRYTARBALL make-deb.sh" \
40 /home/cdfrey/barryremote/results \
41 /tmp/barryremote/squeeze \
42 ./make-deb.sh "$BARRYTARBASE" \
43 "fakeroot -- debian/rules binary os22-binary"
46 # Build the Fedora RPM's
48 # ./rpm.sh <path_to_chroot> <tag>
51 function do_fedora() {
52 ./save.sh /tmp/barryremote/$1 "$2" "$3" \
53 ./remote.sh root barrybuild.netdirect.ca 22 \
54 "$BARRYTARBALL make-rpm.sh chroot.sh" \
55 /tmp/barrychroots/$1 \
57 ./chroot.sh cdfrey /home/chroot/$1 \
58 "$BARRYTARBASE make-rpm.sh" \
59 /home/chroot/$1/home/cdfrey/rpmbuild/binarybuild/results \
60 /tmp/barrychroots/$1 \
63 "$BARRYTARBASE" rpm/barry.spec \
66 /home/cdfrey/rpmbuild/binarybuild
69 do_fedora fedora14 $BARRYBUILDDIR/fedora14-64 f14 \
70 "rpmbuild -ba barry.spec --with gui --with opensync --with desktop"
76 rm -rf /tmp/barryremote
77 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/barrychroots"