Skip to content

Commit 2f49453

Browse files
benyamin-codezYanVugenfirer
authored andcommitted
[CI-NO-BUILD] [build] Preserve existing WIN10_RS1 (1607) COMPAT DVLs
1. Refactor to ensure any pre-existing DVL files are not clobbered. 2. Expand FOR loop Split from PR #1212. Signed-off-by: benyamin-codez <115509179+benyamin-codez@users.noreply.github.com>
1 parent ff927d1 commit 2f49453

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

buildAll.bat

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ for %%D in (pciserial fwcfg Q35) do @(
4848
)
4949
echo.
5050
echo Processing DVL files to create Windows 10 COMPAT ^(WIN10_RS1 ^/ 1607^) version...
51-
for /R %%f in (*.dvl.xml) do @call :process_xml %%f
51+
for /R %%f in (*.dvl.xml) do @(
52+
call :process_xml %%f
53+
)
5254
if "%found_dvl_xml%"=="" (
5355
echo WARNING ^: No DVL files were found.
5456
) else (
@@ -82,8 +84,19 @@ goto :eof
8284

8385
:process_xml
8486
set found_dvl_xml=Yes
85-
echo Creating %~dpn1-compat%~x1...
86-
findstr /v /c:"General.Checksum" "%~1" | findstr /v /c:".Semmle." > "%~dpn1-compat%~x1"
87+
set "dvl_file=%~dpn1-compat%~x1"
88+
if not exist "%dvl_file%" (
89+
call :fudge_xml %1
90+
) else (
91+
rem Here we retain the Windows 10 version 1607, WIN10_RS1, build 14393 COMPAT DVL.
92+
echo The file already exists : %dvl_file%
93+
)
94+
goto :eof
95+
96+
:fudge_xml
97+
rem Here we create a Windows 10 version 1607, WIN10_RS1, build 14393 COMPAT DVL.
98+
echo Auto-magically creating : %dvl_file%
99+
findstr /v /c:"General.Checksum" "%~1" | findstr /v /c:".Semmle." > "%dvl_file%"
87100
goto :eof
88101

89102
:leave

0 commit comments

Comments
 (0)