4e7777c443
Fix various bugs along the way.
50 lines
1.2 KiB
Bash
Executable File
50 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
GLSLANG_REV=c9e03360e2a78a95a8571292aefa5ddbdbf66daf
|
|
SPIRV_TOOLS_REV=e2279da7148d19bd21c6d47ffc96ee4176f43dba
|
|
SPIRV_HEADERS_REV=8bea0a266ac9b718aa0818d9e3a47c0b77c2cb23
|
|
|
|
if [ -d external/glslang ]; then
|
|
echo "Updating glslang to revision $GLSLANG_REV."
|
|
cd external/glslang
|
|
git fetch origin
|
|
git checkout $GLSLANG_REV
|
|
else
|
|
echo "Cloning glslang revision $GLSLANG_REV."
|
|
mkdir -p external
|
|
cd external
|
|
git clone git://github.com/KhronosGroup/glslang.git
|
|
cd glslang
|
|
git checkout $GLSLANG_REV
|
|
fi
|
|
cd ../..
|
|
|
|
if [ -d external/spirv-tools ]; then
|
|
echo "Updating SPIRV-Tools to revision $SPIRV_TOOLS_REV."
|
|
cd external/spirv-tools
|
|
git fetch origin
|
|
git checkout $SPIRV_TOOLS_REV
|
|
else
|
|
echo "Cloning SPIRV-Tools revision $SPIRV_TOOLS_REV."
|
|
mkdir -p external
|
|
cd external
|
|
git clone git://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools
|
|
cd spirv-tools
|
|
git checkout $SPIRV_TOOLS_REV
|
|
fi
|
|
|
|
if [ -d external/spirv-headers ]; then
|
|
cd external/spirv-headers
|
|
git pull origin master
|
|
git checkout $SPIRV_HEADERS_REV
|
|
cd ../..
|
|
else
|
|
git clone git://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
|
|
cd external/spirv-headers
|
|
git checkout $SPIRV_HEADERS_REV
|
|
cd ../..
|
|
fi
|
|
|
|
cd ../..
|
|
|