Files
yttrium-virtio-gpu/NetKVM/clean_inx.cmd
T
benyamin-codez 04f589ff88 [build] Scrub the cleaners
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]>
2025-01-05 15:47:01 +01:00

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