anchor.diff:          )
       )
   )
  -cd %CURRDIR% >NUL
  +cd "%CURRDIR%" >NUL
   GOTO exit
   
   REM Function to clone or update a repo
  
positive.code: REM Check if git is installed and available
  IF "%MSVC_VER%"=="" (
      git status >NUL 2>&1
      IF %ERRORLEVEL% NEQ 0 (
          ECHO A working copy of git was not found. To use this script you must first install git for windows.
          GOTO exitOnError
      )
  )
  
  REM Store current directory and ensure working directory is the location of current .bat
  SET CURRDIR=%CD%
  cd %~dp0
  
  REM Initialise error check value
  SET ERROR=0
  
negative.code: SET PREBUILTDIR=prebuilt
  MKDIR %PREBUILTDIR% >NUL 2>&1
  powershell -nologo -noprofile -command "try { (New-Object Net.WebClient).DownloadFile('%DLURL%', '%PREBUILTDIR%\temp.zip') } catch {exit 1}"
  IF ERRORLEVEL 1 ( ECHO Failed downloading %DLURL% & EXIT /B 1 )
  powershell -nologo -noprofile -command "Add-Type -AssemblyName System.IO.Compression.FileSystem; $zip=[System.IO.Compression.ZipFile]::OpenRead('%PREBUILTDIR%\temp.zip'); foreach ($item in $zip.Entries) { try {$file=(Join-Path -Path .\%PREBUILTDIR% -ChildPath $item.FullName); $null=[System.IO.Directory]::CreateDirectory((Split-Path -Path $file)); [System.IO.Compression.ZipFileExtensions]::ExtractToFile($item,$file,$true)} catch {exit 1} }"
  IF ERRORLEVEL 1 ( ECHO Failed extracting downloaded archive & EXIT /B 1 )
  DEL /F /Q %PREBUILTDIR%\\temp.zip
  ECHO.
  EXIT /B %ERRORLEVEL%
  
  :exitOnError
  cd "%CURRDIR%"
  SET ERROR=1
  
  :exit
  