summaryrefslogtreecommitdiff
path: root/clean.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'clean.cmd')
-rw-r--r--clean.cmd24
1 files changed, 24 insertions, 0 deletions
diff --git a/clean.cmd b/clean.cmd
new file mode 100644
index 0000000000..9dbeecf572
--- /dev/null
+++ b/clean.cmd
@@ -0,0 +1,24 @@
+@if not defined __echo @echo off
+setlocal EnableDelayedExpansion
+
+echo Running clean.cmd
+
+if /I [%1] == [/?] goto Usage
+if /I [%1] == [/help] goto Usage
+
+:: Set __ProjectDir to be the directory of this script
+set "__ProjectDir=%~dp0"
+:: remove trailing slash
+if %__ProjectDir:~-1%==\ set "__ProjectDir=%__ProjectDir:~0,-1%"
+set "__RootBinDir=%__ProjectDir%\bin"
+
+if exist "%__RootBinDir%" rd /s /q "%__RootBinDir%"
+if exist "%__ProjectDir%\Tools" rd /s /q "%__ProjectDir%\Tools"
+
+exit /b 0
+
+:Usage
+echo.
+echo Repository cleaning script.
+echo No option parameters.
+exit /b \ No newline at end of file