anchor.diff:  SET WORKDIR=libfreespace
   SET ZIPNAME=libfreespace-%RELEASE_VERSION%-win32
   
  -REM This must be run from the Visual Studio 2005 Command Prompt
  +REM This must be run from the Visual Studio Command Prompt
   devenv win32\%VS_VERSION%\libfreespace.sln /clean release
   devenv win32\%VS_VERSION%\libfreespace.sln /clean debug
   devenv win32\%VS_VERSION%\libfreespace.sln /build release
  
positive.code: @echo off
  
  rem First make sure we rebuild the message codecs & printers
  rem Some of the .c and .h files are automatically generated by python.
  cd common
  python messageCodeGenerator.py setupMessages.py
  echo %ERRORLEVEL%
  cd ..
  
  rem Check if the VCINSTALLDIR variable has been set.
  rem If it has not been set... try to find the right version of Visual Studio to use.
  if "%VCINSTALLDIR%"=="" (
  echo User has not run vcvars32.bat, run automatically if available
  if not "%VS80COMNTOOLS%"=="" (
  call "%VS80COMNTOOLS%\vsvars32.bat"
  ) else if not "%VS90COMNTOOLS%"=="" (
  call "%VS90COMNTOOLS%\vsvars32.bat"
  ) else if not "%VS100COMNTOOLS"=="" (
  call "%VS100COMNTOOLS%\vsvars32.bat"
  ) else (
  echo Unable to find appropriate Visual Studio version based on VSxxxCOMNTOOLS variable.  
  echo Try running vcvars32.bat
  exit /b 1
  )
  )
  
  rem Determine the Visual Studio version based on VCINSTALLDIR variable
  for /F "usebackq delims=\ tokens=3  " %%i in (`set VCINSTALLDIR`) do set VS_VERSION_STR=%%i
  if "%VS_VERSION_STR%"=="Microsoft Visual Studio 8" (
  set VS_VERSION=vs2005
  ) else if "%VS_VERSION_STR%"=="Microsoft Visual Studio 9" (
  set VS_VERSION=vs2008
  ) else if "%VS_VERSION_STR%"=="Microsoft Visual Studio 10.0" (
  set VS_VERSION=vs2010
  ) else (
  echo Unable to determine Visual Studio version based on VCINSTALLDIR variable.  
  echo Try running vcvars32.bat
  exit /b 1
  )
  echo Using Visual Studio Version: %VS_VERSION%
  
negative.code: mkdir %WORKDIR%\lib
  mkdir %WORKDIR%\include
  mkdir %WORKDIR%\include\freespace
  REM Build, but don't distribute debug versions. This avoids people doing
  REM reasonable things that won't work like not installing the DDK or 
  REM debugging under different compilers. 
  REM mkdir %WORKDIR%\lib\Debug
  mkdir %WORKDIR%\lib\Release
  echo Copying DLLs and LIBs
  REM copy win32\%VS_VERSION%\Debug\libfreespaced.lib %WORKDIR%\lib\Debug
  REM copy win32\%VS_VERSION%\Debug\libfreespaced.dll %WORKDIR%\lib\Debug
  copy win32\%VS_VERSION%\Release\libfreespace.lib %WORKDIR%\lib\Release
  copy win32\%VS_VERSION%\Release\libfreespace.dll %WORKDIR%\lib\Release
  echo Copying header files
  