zig-glfw/update-upstream.sh
Stephen Gutekanst 282b2f4c1a glfw: update vulkan headers to latest (adds v1.3 support)
Produced via `./update-upstream.sh`

Helps hexops/mach#236

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-18 20:44:34 -07:00

23 lines
634 B
Bash
Executable file

#!/usr/bin/env bash
set -ex
# GLFW
rm -rf upstream/
mkdir upstream/
cd upstream/
git clone --depth 1 --branch 3.3.6 https://github.com/glfw/glfw
cd glfw/
# Remove non-C files
rm -rf .appveyor.yml .git .github .gitattributes .gitignore .mailmap .travis.yml
rm cmake_uninstall.cmake.in README.md CONTRIBUTORS.md
rm -r CMake* deps/ examples/ tests/ docs/
rm src/CMakeLists.txt src/*.in
# Vulkan headers
cd ..
git clone --depth 1 https://github.com/KhronosGroup/Vulkan-Headers vulkan_headers/
cd vulkan_headers
rm -rf .git .github registry/ *.gn *.txt *.md cmake/
rm -rf include/vk_video
rm .cmake-format.py .gitattributes .gitignore