2017-12-05 12:25:04 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-04-11 11:28:39 +03:00
|
|
|
GLSLANG_REV=461ea09943e0e88ea854ab9e3b42d17d728af2ad
|
|
|
|
SPIRV_TOOLS_REV=53bc1623ecd3cc304d0d6feed8385e70c7ab30d3
|
2017-12-05 12:25:04 +03:00
|
|
|
|
|
|
|
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
|
2018-03-12 15:09:25 +03:00
|
|
|
fi
|
2017-12-05 12:25:04 +03:00
|
|
|
|
2018-03-12 15:09:25 +03:00
|
|
|
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
|
2017-12-05 12:25:04 +03:00
|
|
|
fi
|
2018-03-12 15:09:25 +03:00
|
|
|
|
2017-12-05 12:25:04 +03:00
|
|
|
cd ../..
|
|
|
|
|