forked from jimmejardine/qiqqa-open-source
-
Notifications
You must be signed in to change notification settings - Fork 5
/
superclean.sh
21 lines (18 loc) · 879 Bytes
/
superclean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash
#
# Cleans out anything that's cached/stored by Microsoft Visual Studio.
#
# Run this script to clean up your build environment to a *pristine* condition.
#
# Note:
# All *local* MSVS settings will be lost.
# Read DEVELOPER-INFO.md for what to do next.
#
# Blow away NuPkg cache
rm -rf packages
rm -rf node_modules
# Nuke anything that's part of the MSVS build process
find . -maxdepth 5 -type d -iname obj -a ! -ipath './libs/*' -a ! -ipath './Qiqqa.Build/nant/*' -a ! -ipath '*openjpeg/src/bin' -exec rm -rf "{}" +
find . -maxdepth 5 -type d -iname bin -a ! -ipath './libs/*' -a ! -ipath './Qiqqa.Build/nant/*' -a ! -ipath '*openjpeg/src/bin' -a ! -ipath '*research*' -exec rm -rf "{}" +
# and nuke the MSVS local config cache
find . -maxdepth 5 -type d -iname '.vs' -exec rm -rf "{}" +