diff options
author | Rob Mensching <rob@firegiant.com> | 2021-12-12 10:37:50 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-12-16 20:38:35 -0800 |
commit | 0b5fd246f6dd8599c53ddc7fc9a92b85646220fc (patch) | |
tree | 2115345829aaf34f2bca20fef22efef4af86348a /src | |
parent | 4dcbd404a65a836924509d14fc7febfd1227ec9b (diff) | |
download | wix-0b5fd246f6dd8599c53ddc7fc9a92b85646220fc.tar.gz wix-0b5fd246f6dd8599c53ddc7fc9a92b85646220fc.tar.bz2 wix-0b5fd246f6dd8599c53ddc7fc9a92b85646220fc.zip |
Add global clean mechanism
Diffstat (limited to 'src')
-rw-r--r-- | src/clean.cmd | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/clean.cmd b/src/clean.cmd new file mode 100644 index 00000000..8e1271a7 --- /dev/null +++ b/src/clean.cmd | |||
@@ -0,0 +1,40 @@ | |||
1 | @echo off | ||
2 | |||
3 | setlocal | ||
4 | pushd %~dp0 | ||
5 | set _NUGET_CACHE=%USERPROFILE%\.nuget\packages | ||
6 | echo Cleaning... | ||
7 | |||
8 | if exist ..\build rd /s/q ..\build | ||
9 | if exist ..\packages rd /s/q ..\packages | ||
10 | |||
11 | if exist Directory.Packages.props (del Directory.Packages.props) | ||
12 | if exist global.json (del global.json) | ||
13 | |||
14 | if exist "%_NUGET_CACHE%\wixbuildtools.testsupport" rd /s/q "%_NUGET_CACHE%\wixbuildtools.testsupport" | ||
15 | if exist "%_NUGET_CACHE%\wixtoolset.bal.wixext" rd /s/q "%_NUGET_CACHE%\wixtoolset.bal.wixext" | ||
16 | if exist "%_NUGET_CACHE%\wixtoolset.balutil" rd /s/q "%_NUGET_CACHE%\wixtoolset.balutil" | ||
17 | if exist "%_NUGET_CACHE%\wixtoolset.bextutil" rd /s/q "%_NUGET_CACHE%\wixtoolset.bextutil" | ||
18 | if exist "%_NUGET_CACHE%\wixtoolset.bootstrappercore.native" rd /s/q "%_NUGET_CACHE%\wixtoolset.bootstrappercore.native" | ||
19 | if exist "%_NUGET_CACHE%\wixtoolset.burn" rd /s/q "%_NUGET_CACHE%\wixtoolset.burn" | ||
20 | if exist "%_NUGET_CACHE%\wixtoolset.core" rd /s/q "%_NUGET_CACHE%\wixtoolset.core" | ||
21 | if exist "%_NUGET_CACHE%\wixtoolset.core.burn" rd /s/q "%_NUGET_CACHE%\wixtoolset.core.burn" | ||
22 | if exist "%_NUGET_CACHE%\wixtoolset.core.native" rd /s/q "%_NUGET_CACHE%\wixtoolset.core.native" | ||
23 | if exist "%_NUGET_CACHE%\wixtoolset.core.testpackage" rd /s/q "%_NUGET_CACHE%\wixtoolset.core.testpackage" | ||
24 | if exist "%_NUGET_CACHE%\wixtoolset.core.windowsinstaller" rd /s/q "%_NUGET_CACHE%\wixtoolset.core.windowsinstaller" | ||
25 | if exist "%_NUGET_CACHE%\wixtoolset.data" rd /s/q "%_NUGET_CACHE%\wixtoolset.data" | ||
26 | if exist "%_NUGET_CACHE%\wixtoolset.dependency.wixext" rd /s/q "%_NUGET_CACHE%\wixtoolset.dependency.wixext" | ||
27 | if exist "%_NUGET_CACHE%\wixtoolset.dtf.compression" rd /s/q "%_NUGET_CACHE%\wixtoolset.dtf.compression" | ||
28 | if exist "%_NUGET_CACHE%\wixtoolset.dtf.compression.cab" rd /s/q "%_NUGET_CACHE%\wixtoolset.dtf.compression.cab" | ||
29 | if exist "%_NUGET_CACHE%\wixtoolset.dtf.resources" rd /s/q "%_NUGET_CACHE%\wixtoolset.dtf.resources" | ||
30 | if exist "%_NUGET_CACHE%\wixtoolset.dtf.windowsinstaller" rd /s/q "%_NUGET_CACHE%\wixtoolset.dtf.windowsinstaller" | ||
31 | if exist "%_NUGET_CACHE%\wixtoolset.dutil" rd /s/q "%_NUGET_CACHE%\wixtoolset.dutil" | ||
32 | if exist "%_NUGET_CACHE%\wixtoolset.extensibility" rd /s/q "%_NUGET_CACHE%\wixtoolset.extensibility" | ||
33 | if exist "%_NUGET_CACHE%\wixtoolset.mba.core" rd /s/q "%_NUGET_CACHE%\wixtoolset.mba.core" | ||
34 | if exist "%_NUGET_CACHE%\wixtoolset.netfx.wixext" rd /s/q "%_NUGET_CACHE%\wixtoolset.netfx.wixext" | ||
35 | if exist "%_NUGET_CACHE%\wixtoolset.sdk" rd /s/q "%_NUGET_CACHE%\wixtoolset.sdk" | ||
36 | if exist "%_NUGET_CACHE%\wixtoolset.util.wixext" rd /s/q "%_NUGET_CACHE%\wixtoolset.util.wixext" | ||
37 | if exist "%_NUGET_CACHE%\wixtoolset.wcautil" rd /s/q "%_NUGET_CACHE%\wixtoolset.wcautil" | ||
38 | |||
39 | popd | ||
40 | endlocal | ||