anchor.diff:  move   %BIN_DIR%\%SGW_EXEC% %DEST_DIR%
   echo "..................................Sync-Gateway Success! Output is: %DEST_DIR%\%SGW_EXEC%"
   
  -GOTO build_sg_accel
  -
  -:build_sg_accel
  -
  -    if "%EDITION%" == "community" GOTO skip_build_sg_accel
  -
  -    set PRODUCT_NAME=%ACCEL_PRODUCT_NAME%
  -
  -    echo ======== remove build meta-data ==============
  -    move  %TEMPLATE_FILE%.orig  %TEMPLATE_FILE%
  -
  -    echo ======== insert %PRODUCT_NAME% build meta-data ==============
  -
  -    setlocal disabledelayedexpansion
  -    for /F "usebackq tokens=1* delims=]" %%I in (`type %TEMPLATE_FILE% ^| find /V /N ""`) do (
  -        if "%%J"=="" (echo.>> %TEMPLATE_FILE%.new) else (
  -        set LINEA=%%J
  -        setlocal enabledelayedexpansion
  -        set LINEB=!LINEA:@PRODUCT_NAME@=%PRODUCT_NAME%!
  -        set LINEC=!LINEB:@PRODUCT_VERSION@=%VERSION%!
  -        set LINED=!LINEC:@COMMIT_SHA@=%REPO_SHA%!
  -        echo !LINED!>> %TEMPLATE_FILE%.new
  -        endlocal )
  -        )
  -    endlocal
  -
  -    dos2unix %TEMPLATE_FILE%.new
  -    move     %TEMPLATE_FILE%       %TEMPLATE_FILE%.orig
  -    move     %TEMPLATE_FILE%.new   %TEMPLATE_FILE%
  -
  -    echo ======== build %PRODUCT_NAME% ===============================
  -
  -    echo go install %GO_EDITION_OPTION% github.com\couchbaselabs\sync-gateway-accel\...
  -    go install %GO_EDITION_OPTION% github.com\couchbaselabs\sync-gateway-accel\...
  -
  -    if NOT EXIST %BIN_DIR%\sync-gateway-accel.exe (
  -        echo "############################# SG-ACCEL FAIL! no such file: %BIN_DIR%\%ACCEL_EXEC%"
  -        exit 1
  -    )
  -    move   %BIN_DIR%\sync-gateway-accel.exe %DEST_DIR%\%ACCEL_EXEC%
  -    echo "..................................SG-ACCEL Success! Output is: %DEST_DIR%\%ACCEL_EXEC%"
  -
  -:skip_build_sg_accel
  -
   echo ======== remove build meta-data ==============
   move  %TEMPLATE_FILE%.orig  %TEMPLATE_FILE%
   
  
positive.code: 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% (
  
negative.code:         echo "############################# SG-SERVICE FAIL! no such file: %SG_SERVICE%"
          exit 1
      )
  
  echo ======== build sgcollect_info ===============================
  set COLLECTINFO_DIR=%SGW_DIR%\tools
  