-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclean.bat
More file actions
20 lines (17 loc) · 687 Bytes
/
clean.bat
File metadata and controls
20 lines (17 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
REM Delete CMake cache directories and files in the current directory and all subdirectories
REM Define array of files and directories to delete
set "to_delete=CMakeCache.txt* CMakeLists.txt.user CMakeFiles CMakeScripts Testing Makefile cmake_install.cmake install_manifest.txt compile_commands.json CTestTestfile.cmake _deps .cmake *.cbp cmake-build-*"
REM Loop through array and delete files and directories
for %%a in (%to_delete%) do (
for /d /r %%b in (*) do (
if exist "%%b\%%a" (
del /f /s /q "%%b\%%a" >nul 2>&1
rd /s /q "%%b\%%a" >nul 2>&1
)
)
for /r %%c in ("%%a") do (
del /f /s /q "%%c" >nul 2>&1
rd /s /q "%%c" >nul 2>&1
)
)