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

#clean without depends for skipping depends build if possible
#also skip pvraddons as long as they are deployed in tree
cd $WORKSPACE;git clean -xfd -e "tools/depends" -e "addons/pvr.*"

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