Created
November 7, 2012 01:52
-
-
Save chrisforbes/4029085 to your computer and use it in GitHub Desktop.
mesa gl3 prettifier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
mkdir -p raw out | |
rm raw/GL3.txt | |
wget -cO raw/GL3.txt http://cgit.freedesktop.org/mesa/mesa/plain/docs/GL3.txt | |
sed -i 's!\(GL_\)\?\(ARB\|NV\|AMD\|EXT\|KHR\|GLX\)_\([^ )]\+\)!<a href="http://www.opengl.org/registry/specs/\2/\3.txt">\0</a>!g' raw/GL3.txt | |
cat > raw/preamble << EOT | |
<!doctype html> | |
<head><title>GL3/4 Progress in Mesa</title></head> | |
<body style='white-space: pre;font-family:monospace'> | |
EOT | |
cat > raw/post << EOT | |
</body> | |
EOT | |
cat raw/preamble raw/GL3.txt > out/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment