build: move to SPIR-V rev 32
authorGregF <greg@LunarG.com>
Tue, 22 Sep 2015 23:07:37 +0000 (17:07 -0600)
committerGregF <greg@LunarG.com>
Tue, 22 Sep 2015 23:09:55 +0000 (17:09 -0600)
LunarGLASS_revision_R32 [new file with mode: 0644]
glslang_revision_R32 [new file with mode: 0644]
update_external_sources.sh

diff --git a/LunarGLASS_revision_R32 b/LunarGLASS_revision_R32
new file mode 100644 (file)
index 0000000..1f88e0c
--- /dev/null
@@ -0,0 +1 @@
+32030
diff --git a/glslang_revision_R32 b/glslang_revision_R32
new file mode 100644 (file)
index 0000000..0a8c17e
--- /dev/null
@@ -0,0 +1 @@
+32031
index 77ce46fa64ca6d899ed7b64c7b82e0b56bfc7f28..567133773ce77c2e087531e492e93a6920dc3dc7 100755 (executable)
@@ -8,6 +8,11 @@ GLSLANG_REVISION=$(cat $PWD/glslang_revision)
 echo "LUNARGLASS_REVISION=$LUNARGLASS_REVISION"
 echo "GLSLANG_REVISION=$GLSLANG_REVISION"
 
+LUNARGLASS_REVISION_R32=$(cat $PWD/LunarGLASS_revision_R32)
+GLSLANG_REVISION_R32=$(cat $PWD/glslang_revision_R32)
+echo "LUNARGLASS_REVISION_R32=$LUNARGLASS_REVISION_R32"
+echo "GLSLANG_REVISION_R32=$GLSLANG_REVISION_R32"
+
 BUILDDIR=$PWD
 BASEDIR=$BUILDDIR/..
 
@@ -18,13 +23,22 @@ function create_glslang () {
    cd $BASEDIR/glslang
    git clone https://github.com/KhronosGroup/glslang.git .
    git checkout $GLSLANG_REVISION
+   svn checkout --force https://cvs.khronos.org/svn/repos/SPIRV/trunk/glslang/ .
+   svn update -r $GLSLANG_REVISION_R32
+   svn revert -R .
 }
 
 function update_glslang () {
    echo "Updating $BASEDIR/glslang"
    cd $BASEDIR/glslang
    git fetch --all
+   git checkout -f .
    git checkout $GLSLANG_REVISION
+   if [ ! -d "$BASEDIR/glslang/.svn" ]; then
+      svn checkout --force https://cvs.khronos.org/svn/repos/SPIRV/trunk/glslang/ .
+   fi
+   svn update -r $GLSLANG_REVISION_R32
+   svn revert -R .
 }
 
 function create_LunarGLASS () {
@@ -39,18 +53,28 @@ function create_LunarGLASS () {
    tar --gzip -xf llvm-3.4.src.tar.gz
    git checkout -f .  # put back the LunarGLASS versions of some LLVM files
    git checkout $LUNARGLASS_REVISION
+   svn checkout --force https://cvs.khronos.org/svn/repos/SPIRV/trunk/LunarGLASS/ .
+   svn update -r $LUNARGLASS_REVISION_R32
+   svn revert -R .
 }
 
 function update_LunarGLASS () {
    echo "Updating $BASEDIR/LunarGLASS"
    cd $BASEDIR/LunarGLASS
    git fetch
-   git checkout $LUNARGLASS_REVISION |& tee gitout
+   git checkout -f .
+   git checkout $LUNARGLASS_REVISION 
    # Figure out how to do this with git
+   #git checkout $LUNARGLASS_REVISION |& tee gitout
    #if grep --quiet LLVM gitout ; then
    #   rm -rf $BASEDIR/LunarGLASS/Core/LLVM/llvm-3.4/build
    #fi
-   rm -rf gitout
+   #rm -rf gitout
+   if [ ! -d "$BASEDIR/LunarGLASS/.svn" ]; then
+      svn checkout --force https://cvs.khronos.org/svn/repos/SPIRV/trunk/LunarGLASS/ .
+   fi
+   svn update -r $LUNARGLASS_REVISION_R32
+   svn revert -R .
 }
 
 function build_glslang () {