#
# This script is run from the top level scripts.  You can rely on
# the following environment variables being set:
#
#    $BARRYTARBALL  - relative path to the release source tarball (bz2)
#    $BARRYTARBASE  - basename of the source tarball (bz2)
#    $BARRYBUILDDIR - directory where results are stored
#

set -e

#
# Build the local DEB's
#
./save.sh /tmp/barrylb22/results $BARRYBUILDDIR/squeeze squeeze \
	./make-deb.sh "$BARRYTARBALL" \
		"fakeroot -- debian/rules binary os22-binary" \
		/usr/src /tmp/barrylb22


#
# Cleanup
#
rm -rf /usr/src/binarybuild
rm -rf /tmp/barrylb22

