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)
12 mkdir -p /tmp/bmchroots
17 function do_ubuntu() {
18 ./save.sh "/tmp/bmchroots/$1" "$2" "$3" \
19 ./chroot.sh cdfrey /var/chroot/$1 \
20 "$BMTARBALL make-deb.sh" \
21 /var/chroot/$1/home/cdfrey/barrychroot/bmbuild/results \
24 ./make-deb.sh "$BMTARBASE" \
25 "make -j2 debian-all" \
27 chown -R cdfrey:cdfrey build
30 do_ubuntu ubuntu1004 ubuntu1004/main/binary-i386 ""
34 # Build the Fedora RPM's
36 function do_fedora() {
37 ./save.sh "/tmp/bmchroots/$1" "$2" "$4" \
38 ./chroot.sh cdfrey "/var/chroot/$1" \
39 "$BMTARBALL make-bm-rpm.sh" \
40 /var/chroot/$1/home/cdfrey/rpmbuild/bmbuild/results \
44 "$BMTARBASE" rpm/barry.spec \
47 /home/cdfrey/rpmbuild/bmbuild
49 mv "build/$2"/*src.rpm "build/$3"
50 chown -R cdfrey:cdfrey build
53 do_fedora fedora14 fedora14/i386/RPMS fedora14/source-i386/SRPMS "" \