if exist "%BUILDDIR%" (rmdir /s/q "%BUILDDIR%" || exit 1)
xcopy /s/q/i . "%BUILDDIR%" || (rmdir /s/q "%BUILDDIR%" & exit 1)
for %I in ("%USERPROFILE%") do set BUILDDIR=%~sI\build
call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /SRV64
set LINK=bufferoverflowu.lib
cd /d "%BUILDDIR%"
call h:\cygwin\cyg-vars.bat
PATH=%PATH%;%BUILDDIR%\lib
cd /d "%BUILDDIR%"
sh -c \
cd /d "%BUILDDIR%"
if ERRORLEVEL 1 ()
cd /d "%USERPROFILE%" & rmdir /s/q "%BUILDDIR%" & exit %ERRORLEVEL%