45 строки
1.0 KiB
Bash
Executable File
45 строки
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
GLSLANG_REV=845860d56513d95e15fe4820df7272f9687d076e
|
|
SPIRV_TOOLS_REV=340370eddbb9f0e7d26b6a4f7e22c1b98150e5e1
|
|
|
|
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
|
|
cd ../..
|
|
else
|
|
git clone git://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
|
|
fi
|
|
|
|
cd ../..
|
|
|