#!/bin/sh

set -e
set -u

cd $AUTOPKGTEST_TMP
apt-get source timemon.app
cd timemon.app-*
buildtool build

# Unfortunately buildtool's exit status is 0 even when the build fails
# so check that the products exist.
stat build/TimeMon/Products/TimeMon.app/TimeMon
stat build/TimeMon/Products/TimeMon.app/Resources
