forked from virtio-win/kvm-guest-drivers-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean.bat
executable file
·50 lines (48 loc) · 1.11 KB
/
clean.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
if "%~1"=="-quiet" (set loglevel=0)
if "%~1"=="-debug" (set loglevel=2)
if "%~1"=="" (set loglevel=1)
set _cln_tgt_=Repo Root
set _cln_subdirs_=NetKVM viostor vioscsi VirtIO Balloon vioserial viorng vioinput viofs pvpanic viosock viogpu viomem viocrypt ivshmem pciserial Q35 fwcfg fwcfg64
echo Cleaning %_cln_tgt_% ...
call .\build\clean.bat %*
echo.
call :subdir %_cln_subdirs_%
echo CLEANING COMPLETE.
goto :eof
:subdir
if "%~1"=="" goto :eof
call :do_clean %1
shift
goto :subdir
:do_clean
if not exist "%~dp0%~1" (
echo The %~1 directory was not available for cleaning.
echo.
goto :eof
)
pushd "%~dp0%~1"
if exist ".\cleanall.bat" (
echo Cleaning %~1 ...
call cleanall.bat
) else (
if exist ".\clean.bat" (
echo Cleaning %~1 ...
call clean.bat
) else (
if exist "..\..\build\clean.bat" (
echo Cleaning %~1 ...
call ..\..\build\clean.bat
) else (
if exist "..\..\..\build\clean.bat" (
echo Cleaning %~1 ...
call ..\..\..\build\clean.bat
) else (
echo A cleaner for the %~1 directory could not be found.
)
)
)
)
echo.
popd
goto :eof