anchor.diff:  if %errorCode% neq 0 (goto:error)
   
   REM Read the target versions from external file, which is shared with Linux script
  -if not exist LunarGLASS_revision (
  -   echo.
  -   echo Missing LunarGLASS_revision file!  Place it next to this script with target version in it.
  -   set errorCode=1
  -   goto:error
  -)
   
   if not exist glslang_revision (
      echo.
  
positive.code:    git checkout %GLSLANG_REVISION%
  goto:eof
  
  :create_LunarGLASS
     REM Windows complains if it can't find the directory below, no need to call
     REM rd /S /Q %LUNARGLASS_DIR%
     echo.
     echo Creating local LunarGLASS repository %LUNARGLASS_DIR%)
     mkdir %LUNARGLASS_DIR%
     cd %LUNARGLASS_DIR%
     git clone https://github.com/LunarG/LunarGLASS.git .
     git checkout %LUNARGLASS_REVISION%
     cd Core\LLVM
     echo.
     echo Downloading LLVM archive...
     wget http://llvm.org/releases/3.4/llvm-3.4.src.tar.gz
     REM tar on windows can't filter through gzip, so the below line doesn't work
     REM tar --gzip -xf llvm-3.4.src.tar.gz
     echo.
     echo Unzipping the archive...
     echo gzip --decompress --verbose --keep llvm-3.4.src.tar.gz
     gzip --decompress --verbose --keep llvm-3.4.src.tar.gz
     echo.
     echo Extracting the archive... (this is slow)
     echo tar -xf llvm-3.4.src.tar
     tar -xf llvm-3.4.src.tar
     if not exist %LUNARGLASS_DIR%\Core\LLVM\llvm-3.4\lib (
        echo .
        echo LLVM source download failed!
        echo Delete LunarGLASS directory and try again
        set errorCode=1
        goto:eof
     )
     echo.
     echo Syncing LunarGLASS source...
     cd %LUNARGLASS_DIR%
     REM put back the LunarGLASS github versions of some LLVM files
     git checkout -f .
     REM overwrite with private gitlab versions of some files
     svn checkout -r %LUNARGLASS_REVISION_R32% --force https://cvs.khronos.org/svn/repos/SPIRV/trunk/LunarGLASS/ .
     svn revert -R .
     if not exist %LUNARGLASS_DIR%\Frontends\SPIRV (
        echo.
        echo LunarGLASS source download failed!
        set errorCode=1
     )
  goto:eof
  
  :update_LunarGLASS
     echo.
     echo Updating %LUNARGLASS_DIR%
     cd %LUNARGLASS_DIR%
     git fetch --all
     git checkout -f %LUNARGLASS_REVISION% .
     if not exist %LUNARGLASS_DIR%\.svn (
        svn checkout -r %LUNARGLASS_REVISION_R32% --force https://cvs.khronos.org/svn/repos/SPIRV/trunk/LunarGLASS/ .
     )
     svn update -r %LUNARGLASS_REVISION_R325
     svn revert -R .
  goto:eof
  
  :create_spirv-tools
     echo.
     echo Creating local spirv-tools repository %SPIRV_TOOLS_DIR%)
  
negative.code: @echo off
  REM Update source for glslang, spirv-tools
  
  REM Determine the appropriate CMake strings for the current version of Visual Studio
  echo Determining VS version
  