Updated buildgen.sh to clean m4 files from the plugins as well
[barry/progweb.git] / maintainer / barryremote
blob3a89caa5359f0d3089cc7031afd978acd3b490e9
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)
9 rm -rf /tmp/barryremote
10 mkdir -p /tmp/barryremote
13 # Build the DEB's
16 function do_ubuntu() {
17         ./save.sh /tmp/barryremote/$1 $2 $3 \
18                 ./remote.sh root barrybuild.netdirect.ca 22 \
19                         "$BARRYTARBALL make-deb.sh chroot.sh" \
20                         /tmp/barrychroots/$1 \
21                         /tmp/barryremote/$1 \
22                 ./chroot.sh cdfrey /home/chroot/$1 \
23                         "$BARRYTARBASE make-deb.sh" \
24                         /home/chroot/$1/home/cdfrey/barrychroot/results \
25                         /tmp/barrychroots/$1 \
26                         cdfrey \
27                 ./make-deb.sh "$BARRYTARBASE" "binary os22-binary"
30 do_ubuntu ubuntu1004 ubuntu1004-64 ubuntu1004
31 do_ubuntu ubuntu804 ubuntu804-64 ubuntu804
33 # Build on the Debian squeeze host system too
34 ./save.sh /tmp/barryremote/squeeze squeeze-64 squeeze \
35         ./remote.sh cdfrey barrybuild.netdirect.ca 22 \
36                 "$BARRYTARBALL make-deb.sh" \
37                 /home/cdfrey/barryremote/results \
38                 /tmp/barryremote/squeeze \
39         ./make-deb.sh "$BARRYTARBASE" "binary os22-binary"
42 # Build the Fedora RPM's
44 # ./rpm.sh <path_to_chroot> <tag>
47 function do_fedora() {
48         ./save.sh /tmp/barryremote/$1 $1 $2 \
49                 ./remote.sh root barrybuild.netdirect.ca 22 \
50                         "$BARRYTARBALL make-rpm.sh chroot.sh" \
51                         /tmp/barrychroots/$1 \
52                         /tmp/barryremote/$1 \
53                 ./chroot.sh cdfrey /home/chroot/$1 \
54                         "$BARRYTARBASE make-rpm.sh" \
55                         /home/chroot/$1/home/cdfrey/rpmbuild/binarybuild/results \
56                         /tmp/barrychroots/$1 \
57                         cdfrey \
58                 ./make-rpm.sh \
59                         "$BARRYTARBASE" rpm/barry.spec \
60                         "-ba barry.spec --with gui --with opensync" \
61                         /home/cdfrey \
62                         /home/cdfrey/rpmbuild/binarybuild
65 do_fedora fedora14 f14
69 # Cleanup
71 rm -rf /tmp/barryremote
72 ssh -x -a -2 root@barrybuild.netdirect.ca "rm -rf /tmp/barrychroots"