tzwrapper.cc: fixed use of iterator after erase
[barry.git] / maintainer / barrychroots
blobc303d09820acb59461930f8a585fdd7c7500cb4a
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 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 \
42                         cdfrey \
43                 ./make-rpm.sh \
44                         "$BARRYTARBASE" rpm/barry.spec \
45                         "$4" \
46                         /home/cdfrey \
47                         /home/cdfrey/rpmbuild/binarybuild
51 # RPM options:
52 #       --with gui
53 #       --with desktop
54 #       --with opensync
55 #       --with opensync4x
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
59 # for now
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
70 # Cleanup
72 rm -rf /tmp/barrychroots