diff options
author | wtgodbe <wigodbe@microsoft.com> | 2016-04-27 14:35:45 -0700 |
---|---|---|
committer | wtgodbe <wigodbe@microsoft.com> | 2016-05-17 14:06:39 -0700 |
commit | 8568bf1d9722657c602a1f1fe0148e28a93ea8ce (patch) | |
tree | d784a4438e3fe7b74106f1d3e82aa88889024fc4 /clean.cmd | |
parent | 41a4ad5054cf877db6aa331855b43ad8678a93ad (diff) | |
download | coreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.tar.gz coreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.tar.bz2 coreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.zip |
Add dev workflow scripts for build pipeline
Diffstat (limited to 'clean.cmd')
-rw-r--r-- | clean.cmd | 24 |
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 |