anchor.diff:  set BLD_DIR=%SGW_DIR%\build
   
   set SGW_INSTALL_DIR=%TARGET_DIR%\sgw_install
  -set SGWACCEL_INSTALL_DIR=%TARGET_DIR%\sgw_accel_install
   
   if EXIST %SGW_INSTALL_DIR% del /s/f/q %SGW_INSTALL_DIR%
  -if EXIST %SGWACCEL_INSTALL_DIR% del /s/f/q %SGWACCEL_INSTALL_DIR%
   
   echo ======== sync sync_gateway ===================
   
   if NOT EXIST %SGW_INSTALL_DIR%           mkdir %SGW_INSTALL_DIR%
   if NOT EXIST %SGW_INSTALL_DIR%\tools     mkdir %SGW_INSTALL_DIR%\tools
   if NOT EXIST %SGW_INSTALL_DIR%\examples  mkdir %SGW_INSTALL_DIR%\examples
  -
  -if NOT EXIST %SGWACCEL_INSTALL_DIR%           mkdir %SGWACCEL_INSTALL_DIR%
  -if NOT EXIST %SGWACCEL_INSTALL_DIR%\tools     mkdir %SGWACCEL_INSTALL_DIR%\tools
  -if NOT EXIST %SGWACCEL_INSTALL_DIR%\examples  mkdir %SGWACCEL_INSTALL_DIR%\examples
   
   set  REPO_FILE=%WORKSPACE%\revision.bat
   if EXIST %REPO_FILE% (
  
positive.code: )
  
  set "SG_PRODUCT_NAME=Couchbase Sync Gateway"
  set "ACCEL_PRODUCT_NAME=Couchbase SG Accel"
  
  set GOOS=%OS%
  set SGW_EXEC=sync_gateway.exe
  set SGW_NAME=sync-gateway
  set ACCEL_EXEC=sg_accel.exe
  set ACCEL_NAME=sg-accel
  set COLLECTINFO_NAME=sgcollect_info
  
  if "%PROC_ARCH%" == "x64" (
  
negative.code: 
  set PKGTYPE=msi
  set SGW_PKG_NAME=couchbase-sync-gateway-%EDITION%_%VERSION%_%PARCH%-unsigned.%PKGTYPE%
  
  set GOROOT=c:\usr\local\go\%GO_RELEASE%\go
  set PATH=%PATH%;%GOROOT%\bin\
  