#!/bin/sh
echo "Cleaning Timestorm projects"
find /home/SMCDev/SMC/Workspaces/Mixed -type d -print | \
egrep '/Debug$|/Release$|/ZoomDebug$|/ZoomRelease$' | \
xargs rm -rf

( cd /home/SMCDev/SMC/mpp2
  for buildtype in Debug Release ZoomDebug ZoomRelease
  do
    echo "Cleaning makepp build type: $buildtype"
    makepp common/$buildtype/cleanall > /dev/null
  done
)

echo "Removing makepp scan folders"
find /home/SMCDev/SMC -type d -name '.makepp' -printf '%p\n' | ( while read dirnm
do
  echo "Removing $dirnm"
  rm -rf "$dirnm"
done )

