tzwrapper.cc: fixed use of iterator after erase
[barry.git] / maintainer / barryremote
blob12081c5851b409a4d9b8d82a113866ed4328dfa2
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/barryremote
13 mkdir -p /tmp/barryremote
16 # Build the DEB's
19 function do_ubuntu() {
20         ./save.sh "/tmp/barryremote/$1" "$2" "$3" \
21                 ./remote.sh root barrybuild.netdirect.ca 22 \
22                         "$BARRYTARBALL make-deb.sh chroot.sh" \
23                         /tmp/barrychroots/$1 \
24                         /tmp/barryremote/$1 \
25                 ./chroot.sh cdfrey /home/chroot/$1 \
26                         "$BARRYTARBASE make-deb.sh" \
27                         /home/chroot/$1/home/cdfrey/barrychroot/results \
28                         /tmp/barrychroots/$1 \
29                         cdfrey \
30                 ./make-deb.sh "$BARRYTARBASE" \
31                         "fakeroot -- debian/rules binary os22-binary"
34 do_ubuntu ubuntu1004 $BARRYBUILDDIR/ubuntu1004-64 ubuntu1004
36 # Build on the Debian squeeze host system too
37 ./save.sh /tmp/barryremote/squeeze $BARRYBUILDDIR/squeeze-64 squeeze \
38         ./remote.sh cdfrey barrybuild.netdirect.ca 22 \
39                 "$BARRYTARBALL make-deb.sh" \
40                 /home/cdfrey/barryremote/results \
41                 /tmp/barryremote/squeeze \
42         ./make-deb.sh "$BARRYTARBASE" \
43                 "fakeroot -- debian/rules binary os22-binary"
46 # Build the Fedora RPM's
48 # ./rpm.sh <path_to_chroot> <tag>
51 function do_fedora() {
52         ./save.sh /tmp/barryremote/$1 "$2" "$3" \
53                 ./remote.sh root barrybuild.netdirect.ca 22 \
54                         "$BARRYTARBALL make-rpm.sh chroot.sh" \
55                         /tmp/barrychroots/$1 \
56                         /tmp/barryremote/$1 \
57                 ./chroot.sh cdfrey /home/chroot/$1 \
58                         "$BARRYTARBASE make-rpm.sh" \
59                         /home/chroot/$1/home/cdfrey/rpmbuild/binarybuild/results \
60                         /tmp/barrychroots/$1 \
61                         cdfrey \
62                 ./make-rpm.sh \
63                         "$BARRYTARBASE" rpm/barry.spec \
64                         "$4" \
65                         /home/cdfrey \
66                         /home/cdfrey/rpmbuild/binarybuild
69 do_fedora fedora14 $BARRYBUILDDIR/fedora14-64 f14 \
70         "rpmbuild -ba barry.spec --with gui --with opensync --with desktop"
74 # Cleanup
76 rm -rf /tmp/barryremote
77 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/barrychroots"