vformat.c: fixed incomplete base64_init()
[barry.git] / maintainer / bmchroots
blob4e52fac0f19f54661f8a586a55fe3953c42226f7
2 # This script is run from the top level scripts.  You can rely on
3 # the following environment variables being set:
5 #    $BMTARBALL  - relative path to the release source tarball (bz2)
6 #    $BMTARBASE  - basename of the source tarball (bz2)
7 #    $BMBUILDDIR - directory to place resulting binary package tree
10 set -e
12 rm -rf /tmp/bmchroots
13 mkdir -p /tmp/bmchroots
16 # Build the DEB's
18 function do_ubuntu() {
19         ./save.sh "/tmp/bmchroots/$1" "$2" "$3" \
20                 ./chroot.sh cdfrey /var/chroot/$1 \
21                         "$BMTARBALL make-deb.sh" \
22                         /var/chroot/$1/home/cdfrey/barrychroot/bmbuild/results \
23                         /tmp/bmchroots/$1 \
24                         cdfrey \
25                 ./make-deb.sh "$BMTARBASE" \
26                         "$4" \
27                         bmbuild bmbuild
31 # Build the Fedora RPM's
33 function do_fedora() {
34         ./save.sh "/tmp/bmchroots/$1" "$2" "$4" \
35                 ./chroot.sh cdfrey "/var/chroot/$1" \
36                         "$BMTARBALL make-bm-rpm.sh" \
37                         /var/chroot/$1/home/cdfrey/rpmbuild/bmbuild/results \
38                         /tmp/bmchroots/$1 \
39                         cdfrey \
40                 ./make-bm-rpm.sh \
41                         "$BMTARBASE" \
42                         "$5" \
43                         /home/cdfrey \
44                         /home/cdfrey/rpmbuild/bmbuild
45         mkdir -p "$3"
46         mv "$2"/*src.rpm "$3"
49 do_ubuntu ubuntu1004 "$BMBUILDDIR/dists/ubuntu1004/main/binary-i386" "" \
50         "make -j2 debian-all deb-libtar"
51 # Ubuntu 11.04 (Natty) is also good for Mint 11
52 do_ubuntu ubuntu1104 "$BMBUILDDIR/dists/ubuntu1104/main/binary-i386" "" \
53         "make -j2 debian-all deb-libtar"
54 # Ubuntu 11.10 (Oneiric) should also be good for Mint 12
55 do_ubuntu ubuntu1110 "$BMBUILDDIR/dists/ubuntu1110/main/binary-i386" "" \
56         "make -j2 debian-all deb-evo3-latest deb-libtar"
57 do_ubuntu ubuntu1204 "$BMBUILDDIR/dists/ubuntu1204/main/binary-i386" "" \
58         "make -j2 debian-all deb-evo3-latest deb-libtar"
60 # Fedora and openSUSE use make 3.82, which is buggy and doesn't handle
61 # parallel builds safely all cases.  So we can't use any -j options here.
62 # http://lists.gnu.org/archive/html/bug-make/2012-01/msg00042.html
63 do_fedora fedora16 \
64         "$BMBUILDDIR/dists/fedora16/i686/RPMS" \
65         "$BMBUILDDIR/dists/fedora16/source-i686/SRPMS" \
66         "" "make rpmclean && make rpm-all rpm-evo3-latest"
67 do_fedora fedora17 \
68         "$BMBUILDDIR/dists/fedora17/i686/RPMS" \
69         "$BMBUILDDIR/dists/fedora17/source-i686/SRPMS" \
70         "" "make rpmclean && make rpm-all rpm-evo3-latest"
71 do_fedora opensuse12.1 \
72         "$BMBUILDDIR/dists/opensuse12.1/i586/RPMS" \
73         "$BMBUILDDIR/dists/opensuse12.1/source-i586/SRPMS" \
74         "" "make rpmclean && make opensuse && make BARRY_GUISU=kdesu rpm-libtar rpm-all"
76 chown -R cdfrey:cdfrey "$BMBUILDDIR"
79 # Cleanup
81 rm -rf /tmp/bmchroots