Here's a script I call "vcclean.sh", meant to be run with Cygwin. Note, this DELETES bunch of files, use with your own risk!!! So, I recommend you familiarize yourself first of what it does.


#!/bin/sh
EXTLIST=".pch$|.ilk$|.pdb$|.idb$|.ncb$|.opt$|.plg$|.bsc$|.sbr$|.positions$|.suo$|(Debug|Release).*/.*obj$|BuildLog.htm$|mt.dep$|exe.(embed|intermediate).manifest(.res)?$|.sdf$|.1.tlog$"
/usr/bin/find . -type f | grep -E $EXTLIST | /usr/bin/perl -pe 's/^(.*)$/"$1"/;' | xargs -r -t -n 8 rm
Shared publiclyView activity