tzwrapper.cc: fixed use of iterator after erase
[barry.git] / maintainer / bmremote
blob17107af24359699b9425b41adf9e9cc9d6cf81ed
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 do_ubuntu ubuntu1004 "$BMBUILDDIR/dists/ubuntu1004/main/binary-amd64" "" \
75         "make -j16 debian-all deb-libtar"
76 # Ubuntu 11.04 (Natty) is also good for Mint 11
77 do_ubuntu ubuntu1104 "$BMBUILDDIR/dists/ubuntu1104/main/binary-amd64" "" \
78         "make -j16 debian-all deb-libtar"
79 # Ubuntu 11.10 (Oneric) should also be good for Mint 12
80 do_ubuntu ubuntu1110 "$BMBUILDDIR/dists/ubuntu1110/main/binary-amd64" "" \
81         "make -j16 debian-all deb-evo3-latest deb-libtar"
82 do_ubuntu ubuntu1204 "$BMBUILDDIR/dists/ubuntu1204/main/binary-amd64" "" \
83         "make -j16 debian-all deb-evo3-latest deb-libtar"
84 do_debian
86 # Fedora and openSUSE use make 3.82, which is buggy and doesn't handle
87 # parallel builds safely all cases.  So we can't use any -j options here.
88 # http://lists.gnu.org/archive/html/bug-make/2012-01/msg00042.html
89 do_fedora fedora16 \
90         "$BMBUILDDIR/dists/fedora16/x86_64/RPMS" \
91         "$BMBUILDDIR/dists/fedora16/source-x86_64/SRPMS" "" \
92         "make rpmclean && make LIB_SUFFIX=64 rpm-all rpm-evo3-latest"
93 do_fedora fedora17 \
94         "$BMBUILDDIR/dists/fedora17/x86_64/RPMS" \
95         "$BMBUILDDIR/dists/fedora17/source-x86_64/SRPMS" "" \
96         "make rpmclean && make LIB_SUFFIX=64 rpm-all rpm-evo3-latest"
97 do_fedora opensuse12.1 \
98         "$BMBUILDDIR/dists/opensuse12.1/x86_64/RPMS" \
99         "$BMBUILDDIR/dists/opensuse12.1/source-x86_64/SRPMS" "" \
100         "make rpmclean && make opensuse && make LIB_SUFFIX=64 BARRY_GUISU=kdesu rpm-libtar rpm-all"
104 # Cleanup
106 rm -rf /tmp/bmremote
107 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/bmchroots"