desktop: added status message during database pre-loads in Browse
[barry/progweb.git] / maintainer / bmremote
blob4395a2a3c38011cfe27361899c6e069760ee03ba
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/bmremote
13 mkdir -p /tmp/bmremote
16 # Build the DEB's
19 function do_ubuntu() {
20         ./save.sh /tmp/bmremote/$1 "$2" "$3" \
21                 ./remote.sh root barrybuild.netdirect.ca 22 \
22                         "$BMTARBALL make-deb.sh chroot.sh" \
23                         /tmp/bmchroots/$1 \
24                         /tmp/bmremote/$1 \
25                 ./chroot.sh cdfrey /home/chroot/$1 \
26                         "$BMTARBASE make-deb.sh" \
27                         /home/chroot/$1/home/cdfrey/barrychroot/bmbuild/results \
28                         /tmp/bmchroots/$1 \
29                         cdfrey \
30                 ./make-deb.sh "$BMTARBASE" \
31                         "$4" \
32                         bmbuild bmbuild
35 # Build on the Debian squeeze host system too
36 function do_debian() {
37         ./save.sh /tmp/bmremote/squeeze64 "$BMBUILDDIR/dists/squeeze/main/binary-amd64" "" \
38                 ./remote.sh cdfrey barrybuild.netdirect.ca 22 \
39                         "$BMTARBALL make-deb.sh" \
40                         /home/cdfrey/barryremote/bmbuild/results \
41                         /tmp/bmremote/squeeze64 \
42                 ./make-deb.sh "$BMTARBASE" \
43                         "make -j16 debian-all" \
44                         bmbuild bmbuild
49 # Build the Fedora RPM's
51 # ./rpm.sh <path_to_chroot> <tag>
54 function do_fedora() {
55         ./save.sh "/tmp/bmremote/$1" "$2" "$4" \
56                 ./remote.sh root barrybuild.netdirect.ca 22 \
57                         "$BMTARBALL make-bm-rpm.sh chroot.sh" \
58                         /tmp/bmchroots/$1 \
59                         /tmp/bmremote/$1 \
60                 ./chroot.sh cdfrey /home/chroot/$1 \
61                         "$BMTARBASE make-bm-rpm.sh" \
62                         /home/chroot/$1/home/cdfrey/rpmbuild/bmbuild/results \
63                         /tmp/bmchroots/$1 \
64                         cdfrey \
65                 ./make-bm-rpm.sh \
66                         "$BMTARBASE" \
67                         "$5" \
68                         /home/cdfrey \
69                         /home/cdfrey/rpmbuild/bmbuild
70         mkdir -p "$3"
71         mv "$2"/*src.rpm "$3"
74 # Ubuntu 8.04 has trouble building KDEPIM / akonadi-sync, so skip those
75 do_ubuntu ubuntu804 "$BMBUILDDIR/dists/ubuntu804/main/binary-amd64" "" \
76         "touch deb-akonadi-latest deb-kdepim-0.2x && make -j16 debian-all"
77 do_ubuntu ubuntu1004 "$BMBUILDDIR/dists/ubuntu1004/main/binary-amd64" "" \
78         "make -j16 debian-all"
79 # Ubuntu 11.04 (Natty) is also good for Mint 11
80 do_ubuntu ubuntu1104 "$BMBUILDDIR/dists/ubuntu1104/main/binary-amd64" "" \
81         "make -j16 debian-all"
82 # Ubuntu 11.10 (Natty) should also be good for Mint 12
83 do_ubuntu ubuntu1110 "$BMBUILDDIR/dists/ubuntu1110/main/binary-amd64" "" \
84         "make -j16 debian-all"
85 do_debian
87 # Fedora and openSUSE use make 3.82, which is buggy and doesn't handle
88 # parallel builds safely all cases.  So we can't use any -j options here.
89 # http://lists.gnu.org/archive/html/bug-make/2012-01/msg00042.html
90 do_fedora fedora14 \
91         "$BMBUILDDIR/dists/fedora14/x86_64/RPMS" \
92         "$BMBUILDDIR/dists/fedora14/source-x86_64/SRPMS" "" \
93         "make LIB_SUFFIX=64 rpm-all"
94 do_fedora fedora16 \
95         "$BMBUILDDIR/dists/fedora16/x86_64/RPMS" \
96         "$BMBUILDDIR/dists/fedora16/source-x86_64/SRPMS" "" \
97         "make LIB_SUFFIX=64 rpm-all"
98 do_fedora opensuse12.1 \
99         "$BMBUILDDIR/dists/opensuse12.1/x86_64/RPMS" \
100         "$BMBUILDDIR/dists/opensuse12.1/source-x86_64/SRPMS" "" \
101         "make LIB_SUFFIX=64 rpm-libtar rpm-all"
105 # Cleanup
107 rm -rf /tmp/bmremote
108 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/bmchroots"