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)
9 rm -rf /tmp/barryremote
10 mkdir -p /tmp/barryremote
16 function do_ubuntu() {
17 ./save.sh /tmp/barryremote/$1 $2 $3 \
18 ./remote.sh root barrybuild.netdirect.ca 22 \
19 "$BARRYTARBALL make-deb.sh chroot.sh" \
20 /tmp/barrychroots/$1 \
22 ./chroot.sh cdfrey /home/chroot/$1 \
23 "$BARRYTARBASE make-deb.sh" \
24 /home/chroot/$1/home/cdfrey/barrychroot/results \
25 /tmp/barrychroots/$1 \
27 ./make-deb.sh "$BARRYTARBASE" "binary os22-binary"
30 do_ubuntu ubuntu1004 ubuntu1004-64 ubuntu1004
31 do_ubuntu ubuntu804 ubuntu804-64 ubuntu804
33 # Build on the Debian squeeze host system too
34 ./save.sh /tmp/barryremote/squeeze squeeze-64 squeeze \
35 ./remote.sh cdfrey barrybuild.netdirect.ca 22 \
36 "$BARRYTARBALL make-deb.sh" \
37 /home/cdfrey/barryremote/results \
38 /tmp/barryremote/squeeze \
39 ./make-deb.sh "$BARRYTARBASE" "binary os22-binary"
42 # Build the Fedora RPM's
44 # ./rpm.sh <path_to_chroot> <tag>
47 function do_fedora() {
48 ./save.sh /tmp/barryremote/$1 $1 $2 \
49 ./remote.sh root barrybuild.netdirect.ca 22 \
50 "$BARRYTARBALL make-rpm.sh chroot.sh" \
51 /tmp/barrychroots/$1 \
53 ./chroot.sh cdfrey /home/chroot/$1 \
54 "$BARRYTARBASE make-rpm.sh" \
55 /home/chroot/$1/home/cdfrey/rpmbuild/binarybuild/results \
56 /tmp/barrychroots/$1 \
59 "$BARRYTARBASE" rpm/barry.spec \
60 "-ba barry.spec --with gui --with opensync" \
62 /home/cdfrey/rpmbuild/binarybuild
65 do_fedora fedora14 f14
71 rm -rf /tmp/barryremote
72 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/barrychroots"