anchor.diff:  rem Parameters are:
  -rem doBuild.bat Win32|x64 FULL|INCREMENTAL RELEASE|NORELEASE UPLOAD|NOUPLOAD
  +rem doBuild.bat Win32|x64 FULL|INCREMENTAL RELEASE|NIGHTLY UPLOAD|NOUPLOAD
   
   echo %date% - %time%
   
  
positive.code: popd
  
  REM -- try to install on build machine
  if "%PLATFORM%"=="x64" (
      if not "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
          goto CANTINSTALLHERE
      )
  )
  \Projects\micromanager\Install_%PLATFORM%\Output\%TARGETNAME%  /silent
  ECHO "Done installing"
  :CANTINSTALLHERE
  IF NOT "%DO_UPLOAD%" == "UPLOAD" GOTO FINISH
  pscp -i c:\projects\MM.ppk -batch /projects/micromanager/Install_%PLATFORM%/Output/%TARGETNAME% arthur@valelab.ucsf.edu:../MM/public_html/nightlyBuilds/1.4/Windows/%TARGETNAME%
  :FINISH
  
  pushd .\mmstudio\src\org\micromanager
  del MMVersion.java
  
negative.code: del MMVersion.java
  svn update --non-interactive
  rem for nightly builds we put the version + the date-stamp
  if "%DO_RELEASE_BUILD%"=="RELEASE" (
      set TARGETNAME=MMSetup%ARCH%BIT_%mmversion%.exe
      sed -i "s/\"1\.4.*/\"%mmversion%\";/"  MMVersion.java
  ) else (
      set TARGETNAME=MMSetup%ARCH%BIT_%mmversion%_%YYYYMMDD%.exe
      sed -i "s/\"1\.4.*/\"%mmversion%  %YYYYMMDD%\";/"  MMVersion.java
  )
  popd
  
  rem remove any installer package with exactly the same name as the current output
  