desktop: added status message during database pre-loads in Browse
[barry/progweb.git] / maintainer / barrychroots
blob03561716bb317d738b41fad10787dcdf8b485600
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
10 set -e
12 rm -rf /tmp/barrychroots
13 mkdir -p /tmp/barrychroots
16 # Build the DEB's
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 \
24                         cdfrey \
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 \
43                         cdfrey \
44                 ./make-rpm.sh \
45                         "$BARRYTARBASE" rpm/barry.spec \
46                         "$4" \
47                         /home/cdfrey \
48                         /home/cdfrey/rpmbuild/binarybuild
52 # RPM options:
53 #       --with gui
54 #       --with desktop
55 #       --with opensync
56 #       --with opensync4x
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
60 # for now
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
71 # Cleanup
73 rm -rf /tmp/barrychroots