WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
XBMC_PLATFORM_DIR=linux64
. $WORKSPACE/tools/buildsteps/defaultenv

#clean without depends for skipping depends build if possible
cd $WORKSPACE;git clean -xfd -e "project/cmake/.last_success_revision" -e "tools/depends"

if [ "$(rebuildDepends)" == "1" ]
then
  #clean up the rest too
  cd $WORKSPACE;git clean -xffd
  cd $WORKSPACE/tools/depends/;./bootstrap
fi
