Skip to content
Dmitri Shuralyov edited this page Aug 19, 2016 · 11 revisions

Updating GLFW C source

The following steps can be used to update the GLFW C source to latest official release.

rm -rf ./glfw/
git clone --depth 1 --branch latest https://github.com/glfw/glfw.git
cd ./glfw/
git rev-parse HEAD > ../GLFW_C_REVISION.txt

# Only keep the needed sources files in ./src, ./include and ./deps.
rm -rf ./.git
rm -rf ./.gitignore
rm -rf ./.appveyor.yml
rm -rf ./.github
rm -rf ./.travis.yml
rm -rf ./CMake
rm -rf ./CMakeLists.txt
rm -rf ./src/CMakeLists.txt
rm -rf ./src/*.in
rm -rf ./README.md
rm -rf ./cmake_uninstall.cmake.in
rm -rf ./docs
rm -rf ./examples
rm -rf ./tests

Clone this wiki locally