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/barrychroots
13 mkdir -p /tmp/barrychroots
18 function do_ubuntu() {
19 ./save.sh "/tmp/barrychroots/$1" "$2" "$3" \
20 ./chroot.sh cdfrey /var/chroot/$1 \
21 "$BARRYTARBALL make-deb.sh" \
22 /var/chroot/$1/home/cdfrey/barrychroot/results \
23 /tmp/barrychroots/$1 \
25 ./make-deb.sh "$BARRYTARBASE" \
26 "fakeroot -- debian/rules binary os22-binary"
29 do_ubuntu ubuntu1004 $BARRYBUILDDIR/ubuntu1004 ubuntu1004
30 do_ubuntu ubuntu804 $BARRYBUILDDIR/ubuntu804 ubuntu804
31 chown -R cdfrey:cdfrey $BARRYBUILDDIR
35 # Build the Fedora RPM's
37 function do_fedora() {
38 ./save.sh "/tmp/barrychroots/$1" "$2" "$3" \
39 ./chroot.sh cdfrey /var/chroot/$1 \
40 "$BARRYTARBALL make-rpm.sh" \
41 /var/chroot/$1/home/cdfrey/rpmbuild/binarybuild/results \
42 /tmp/barrychroots/$1 \
45 "$BARRYTARBASE" rpm/barry.spec \
48 /home/cdfrey/rpmbuild/binarybuild
58 # fedora14 has a bug in ligcal's pkgconfig... need to edit
59 # its /usr/lib/pkgconfig/libgcal.pc file manually to work around it
61 #do_fedora fedora14 build/fedora14 f14 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync --with desktop"
62 do_fedora fedora13 $BARRYBUILDDIR/fedora13 f13 \
63 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync --with desktop"
64 do_fedora fedora12 $BARRYBUILDDIR/fedora12 f12 \
65 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync --with desktop"
66 do_fedora fedora11 $BARRYBUILDDIR/fedora11 f11 \
67 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync"
68 chown -R cdfrey:cdfrey $BARRYBUILDDIR
73 rm -rf /tmp/barrychroots