[ofw] [PATCH] WinOF inf2cat.exe error return handling
Smith, Stan
stan.smith at intel.com
Thu Oct 29 15:45:48 PDT 2009
Signed-off-by: stan smith <stan.smith at intel.com>
Revision: 2522
Author: stansmith
Date: 2:53:48 PM, Thursday, October 29, 2009
Message:
[WINOF] inf2cat.exe returns (-1) which doesn't work well with 'ERRORLEVEL 1' use !ERRORLEVEL! which is evaluated upon access.
----
Modified : /gen1/trunk/WinOF/WIX/win7/signDrivers.bat
Modified : /gen1/trunk/WinOF/WIX/wlh/signDrivers.bat
Modified : /gen1/trunk/WinOF/WIX/wnet/signDrivers.bat
Modified : /gen1/trunk/WinOF/WIX/wxp/signDrivers.bat
--- C:/Documents and Settings/scsmith/Local Settings/Temp/signDrivers.ba-revBASE.svn001.tmp.bat Thu Oct 29 14:50:27 2009
+++ C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/WinOF/WIX/win7/signDrivers.bat Wed Oct 28 09:15:43 2009
@@ -58,7 +58,7 @@
rem make sure signtool is accessible in our path
path > jnk.txt
findstr /c:"SelfSign" jnk.txt > jnk1.txt
-if %errorlevel% EQU 1 (
+if %ERRORLEVEL% EQU 1 (
path "%PATH%;C:\WinDDK\xxx\bin\SelfSign"
)
if exist jnk1.txt del /Q /F jnk1.txt
@@ -92,7 +92,7 @@
echo %0 [%OE%] Generating %%d .cat files for !OEA!
inf2cat /driver:!CD! /os:!OEA!
- if ERRORLEVEL 1 (
+ if !ERRORLEVEL! NEQ 0 (
echo %CD% inf2cat failed
exit /B 1
)
More information about the ofw
mailing list