build: fix update_external_sources.bat to pick up SPIRV rev32 for glslang
authorGregF <greg@LunarG.com>
Wed, 23 Sep 2015 17:16:44 +0000 (11:16 -0600)
committerGregF <greg@LunarG.com>
Wed, 23 Sep 2015 17:36:43 +0000 (11:36 -0600)
update_external_sources.bat

index 81b29e1..e21f482 100755 (executable)
@@ -194,9 +194,15 @@ set /p GLSLANG_REVISION= < glslang_revision
 echo LUNARGLASS_REVISION=%LUNARGLASS_REVISION%\r
 echo GLSLANG_REVISION=%GLSLANG_REVISION%\r
 \r
+set /p LUNARGLASS_REVISION_R32= < LunarGLASS_revision_R32\r
+set /p GLSLANG_REVISION_R32= < glslang_revision_R32\r
+echo LUNARGLASS_REVISION_R32=%LUNARGLASS_REVISION_R32%\r
+echo GLSLANG_REVISION_R32=%GLSLANG_REVISION_R32%\r
+\r
 echo Creating and/or updating glslang and LunarGLASS in %BASE_DIR%\r
 \r
 if %sync-glslang% equ 1 (\r
+   rd /S /Q %GLSLANG_DIR%\r
    if not exist %GLSLANG_DIR% (\r
       call:create_glslang\r
    )\r
@@ -262,8 +268,9 @@ goto:eof
    echo.\r
    echo Updating %GLSLANG_DIR%\r
    cd %GLSLANG_DIR%\r
-   git fetch --all\r
-   git checkout %GLSLANG_REVISION%\r
+   svn.exe checkout --force https://cvs.khronos.org/svn/repos/SPIRV/trunk/glslang/ .\r
+   svn.exe update -r %GLSLANG_REVISION_R32%\r
+   svn.exe revert -R .\r
 goto:eof\r
 \r
 :create_LunarGLASS\r