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 chown -R cdfrey:cdfrey $BARRYBUILDDIR
34 # Build the Fedora RPM's
36 function do_fedora() {
37 ./save.sh "/tmp/barrychroots/$1" "$2" "$3" \
38 ./chroot.sh cdfrey /var/chroot/$1 \
39 "$BARRYTARBALL make-rpm.sh" \
40 /var/chroot/$1/home/cdfrey/rpmbuild/binarybuild/results \
41 /tmp/barrychroots/$1 \
44 "$BARRYTARBASE" rpm/barry.spec \
47 /home/cdfrey/rpmbuild/binarybuild
57 # fedora14 has a bug in ligcal's pkgconfig... need to edit
58 # its /usr/lib/pkgconfig/libgcal.pc file manually to work around it
60 #do_fedora fedora14 build/fedora14 f14 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync --with desktop"
61 do_fedora fedora13 $BARRYBUILDDIR/fedora13 f13 \
62 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync --with desktop"
63 do_fedora fedora12 $BARRYBUILDDIR/fedora12 f12 \
64 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync --with desktop"
65 do_fedora fedora11 $BARRYBUILDDIR/fedora11 f11 \
66 "rpmbuild --target i386 -ba barry.spec --with gui --with opensync"
67 chown -R cdfrey:cdfrey $BARRYBUILDDIR
72 rm -rf /tmp/barrychroots