@echo off
rem  SUBJ:  Batch file for compiling code in analyzer.
rem  CR:    01/24/06 AM.
rem  CALL:  compile-all


if "%1" == "" goto ok

:bad
echo.
echo Usage: compile-all
echo        Compiles analyzer projects.
goto exit

:ok

devenv user\user.sln /rebuild unicode_release
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort

devenv kb\kb.sln /rebuild unicode_release
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort

devenv run\run.sln /rebuild unicode_release
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort

devenv prog.sln /rebuild unicode_release
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort

goto exit

:lowmemory
echo.
echo Error in compile-all.
echo Some projects may not have compiled.
goto exit

:abort
echo.
echo Backup aborted.
goto exit

:exit
