mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-10-31 02:05:04 +00:00
a) Standardised cleaner routines b) Introduced -quiet and -debug parameters when run from repo root c) Moved from FOR loop to a shift loop to more reliably support a wider variety of directory formats and characters d) Created NetKVM/clean_inx.cmd to delete *.inx files in NetKVM e) Updated NetKVM/clean_dvl_log.cmd to use standardised routines f) Moved all other custom clean operations to build/clean.bat g) Added missing cleaner to viocrypt h) Added missing entries for viomem and viocrypt to list of directories to clean Signed-off-by: benyamin-codez <[email protected]>
20 lines
391 B
Batchfile
20 lines
391 B
Batchfile
@echo off
|
|
if "%loglevel%"=="" (
|
|
if "%~1"=="-quiet" (set loglevel=0)
|
|
if "%~1"=="-debug" (set loglevel=2)
|
|
if "%~1"=="" (set loglevel=1)
|
|
)
|
|
call :rmfiles *.inx
|
|
goto :eof
|
|
|
|
:rmfiles
|
|
if "%~1"=="" goto :eof
|
|
if exist "%~1" (
|
|
if %loglevel% NEQ 0 echo Removing the %~1 file...
|
|
del /f "%~1"
|
|
) else (
|
|
if %loglevel% EQU 2 echo We did not find any %~1 file^(s^) to remove.
|
|
)
|
|
shift
|
|
goto rmfiles
|