[ofw] [PATCH] WinOF build script

Smith, Stan stan.smith at intel.com
Thu Oct 29 15:43:29 PDT 2009


Signed-off-by: stan smith <stan.smith at intel.com

Revision: 2521
Author: stansmith
Date: 2:45:37 PM, Thursday, October 29, 2009
Message:
[WINOF] simplify error handling with a for() loop
----
Modified : /gen1/trunk/WinOF/WIX/build-all-MSI.bat

--- C:/Documents and Settings/scsmith/Local Settings/Temp/build-all-MSI.bat-revBASE.svn000.tmp.bat      Thu Oct 29 14:43:42 2009
+++ C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/WinOF/WIX/build-all-MSI.bat    Wed Oct 28 09:21:15 2009
@@ -69,6 +69,7 @@
 if "%1" == "msi" goto mk_msi

 rem Sign drivers for all OSes & arches. Convert CertFilename to full path.
+
 call sign-all-drivers %CD%\%2 %3

 if ERRORLEVEL 1 (
@@ -83,32 +84,22 @@

 :mk_msi

-rem build Windows 7 x86, x64 & ia64 installers
-if exist win7\bin\HCA (
-       pushd win7
+rem build x86, x64 & ia64 Installers for each of
+rem       Windows 7/Server 2008 R2
+rem    Vista/Server 2008
+rem       Server 2003/XP64
+rem    Windows XP (32-bit) version: x86 only
+
+for %%o in ( win7 wlh wnet wxp ) do (
+       if Not exist %%o\bin\HCA (
+               echo Missing %%o files?
+               exit /B 1
+       )
+       pushd %%o
        call build-MSI %DST%
-       if ERRORLEVEL 1 exit /B
+       if ERRORLEVEL 1 exit /B 1
        popd
 )
-
-rem build Windows Server 2008 / Vista (LongHorn versions) x86, x64 & ia64
-
-pushd wlh
-call build-MSI %DST%
-if ERRORLEVEL 1 exit /B
-popd
-
-:: build Windows Server 2003 versions: x86, x64 & ia64
-pushd wnet
-call build-MSI %DST%
-if ERRORLEVEL 1 exit /B
-popd
-
-:: build Windows XP (32-bit) versions: x86 only
-pushd wxp
-call build-MSI %DST%
-if ERRORLEVEL 1 exit /B
-popd

 rem Digitally Sign the installer .msi files




More information about the ofw mailing list