#!/bin/bash
backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"
sh build-source.sh
#check for errors
if [ $? -ne 0 ]; then
cd "$backup"
echo "Failed"
exit 1
fi
echo "Pushing new revisions to launchpad..."
bzr push lp:~teejee2008/conky-manager/trunk
#check for errors
if [ $? -ne 0 ]; then
cd "$backup"
echo "Failed"
exit 1
fi
cd "$backup"