4 PROJECT=simplexbmcremote
7 BUILD=$PROJECT-$RELEASE
9 MAD_BIN=$HOME/local/qtsdk--1_1_beta/Maemo/4.6.2/bin/mad
11 if [[ -z $RELEASE ]] ; then
12 echo "Please provide a release. Aborting."
16 if [[ ! -d $ORIGIN ]] ; then
17 echo "ORIGIN $ORIGIN not found. Aborting."
21 if [[ -a $BUILD ]] ; then
22 echo "Old $BUILD is in the way. Please remove it by hand. Aborting."
26 echo "Building release $BUILD ..."
30 $MAD_BIN dpkg-buildpackage -rfakeroot -sa -i -us -uc
31 $MAD_BIN fakeroot debian/rules clean