Add error checking to script.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 19 Jul 2007 16:45:31 +0000 (16:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 19 Jul 2007 16:45:31 +0000 (16:45 +0000)
ms/do_fips.bat

index 9bc6d22cceba3cd34a054b1276607414990b19cb..36ef889834ad8aca14bf175044c125270f14e8fd 100644 (file)
@@ -58,24 +58,52 @@ cd ..\..\..
 echo RIPEMD160
 cd crypto\ripemd\asm
 perl rmd-586.pl win32n %ASMOPTS% > rm_win32.asm
+if ERRORLEVEL 1 goto error
 cd ..\..\..
 
 echo RC5\32
 cd crypto\rc5\asm
 perl rc5-586.pl win32n %ASMOPTS% > r5_win32.asm
+if ERRORLEVEL 1 goto error
 cd ..\..\..
 
 echo CPU-ID
 cd crypto
 perl x86cpuid.pl win32n %ASMOPTS% > cpu_win32.asm
+if ERRORLEVEL 1 goto error
 cd ..
 
 echo on
 
 perl util\mkfiles.pl >MINFO
+@if ERRORLEVEL 1 goto error
 perl util\mk1mf.pl dll nasm VC-WIN32 >ms\ntdll.mak
+@if ERRORLEVEL 1 goto error
 
 perl util\mkdef.pl 32 libeay > ms\libeay32.def
+@if ERRORLEVEL 1 goto error
 perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
+@if ERRORLEVEL 1 goto error
 
 nmake -f ms\ntdll.mak
+@if ERRORLEVEL 1 goto error
+
+@echo.
+@echo.
+@echo.
+@echo ***************************
+@echo ****FIPS BUILD SUCCESS*****
+@echo ***************************
+
+@goto end
+
+:error
+
+@echo.
+@echo.
+@echo.
+@echo ***************************
+@echo ****FIPS BUILD FAILURE*****
+@echo ***************************
+
+:end