1:@echo off
   2:@Echo Compiling a release build of Firebird v1.5
   3:
   4:if DEFINED VS71COMNTOOLS (
   5:@devenv /? >nul 2>nul
   6:@if errorlevel 9009 (call "%VS71COMNTOOLS%vsvars32.bat") else ( echo "%VS71COMNTOOLS%vsvars32.bat has already been executed.")
   7:) else (
   8:@msdev /? >nul 2>nul
   9:@if errorlevel 9009 (call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat") else (echo "MSVC6 vcvars.bat has already been executed")
  10:)
  11:
  12:call clean_all.bat
  13:call prepare.bat
  14:call parse.bat
  15:call make_boot.bat
  16:call make_all.bat %1 %2 || @echo an error occurred & goto :EOF
  17:call :MAKE_EXAMPLES
  18:goto :EOF
  19:
  20:::============
  21::MAKE_EXAMPLES
  22:::Test to see if make_all failed somewhere
  23:::so something will have failed
  24:findstr error(s) make_all.log |  find  /V "0 err" | find  /C "err"&& (goto :make_fail && goto :EOF) || goto :make_good
  25:goto :EOF
  26:
  27:
  28:::========
  29::MAKE_GOOD
  30:@echo.
  31:@echo.
  32:@echo No errors occurred during make_all.
  33:@echo Now proceeding to make examples.
  34:@echo.
  35:call make_examples.bat
  36:goto :EOF
  37:
  38:
  39:::=======
  40::MAKE_FAIL
  41:@echo The following errors and warnings occurred during the build:
  42:findstr error(s) make_all.log |  find  /V "0 err"
  43:goto :EOF
  44:
  45:
  46: