rem\r
rem Digitally sign all drivers for all OSes & architectures.\r
rem\r
-rem example - sign-all-drivers CertFilename CertSubjName {noTimeStamp}\r
+rem example - sign-all-drivers CertFilename CertSubjName {OS arch}\r
rem CertFilename - full path to MSCV-VSClass3.cer file\r
rem example ...\trunk\winof\wix\MSCV-VSClass3.cer\r
rem CertSubjName - "OpenFabricsAlliance" Your Company CertName in CertStore. \r
+rem OS - one of all,wxp,wlh,wnet,win7\r
+rem arch - all,amd64,x64,x86,ia64\r
rem see TS below.\r
rem\r
\r
exit /B 1\r
)\r
\r
+rem already quoted\r
if %2 == "" (\r
echo %0 - Missing Cert Subject name?\r
exit /B 1\r
)\r
\r
+if "%3" == "" (\r
+:all\r
+ set OS_names=win7 wlh wnet wxp\r
+ set Arch_names=amd64 x86 ia64\r
+) else (\r
+ if "%4" == "" (\r
+ echo %0: options OS arch must both be specified.\r
+ exit /B 1 \r
+ )\r
+\r
+ if "%3" == "all" goto all\r
+ set OS_names=%3\r
+ if "%4" == "x64" (set Arch_names=amd64) else (set Arch_names=%4)\r
+)\r
+\r
rem XXX defeat TimeStamping until net access resolved.\r
rem set TS=noTimeStamp\r
\r
-for %%p in ( win7 wlh wnet wxp ) do (\r
+for %%p in ( %OS_names% ) do (\r
echo %0 - Signing %%p drivers\r
pushd %%p\r
if ERRORLEVEL 1 (\r
set TISTMP=/t http://timestamp.verisign.com/scripts/timstamp.dll\r
set DU=/du http://www.openfabrics.org\r
\r
-for %%p in ( win7 wlh wnet wxp ) do (\r
+for %%p in ( %OS_names% ) do (\r
pushd %%p\r
echo.\r
echo Sign %%p Executables\r
- for %%a in ( amd64 x86 ia64 ) do (\r
+ for %%a in ( %Arch_names% ) do (\r
for %%f in ( bin\net\%%a\ndinstall.exe bin\net\%%a\installsp.exe ) do (\r
if exist %%f (\r
signtool sign /ac %1 /n %2 %TISTMP% %DU% %%f\r