diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-11-27 12:04:13 +0000 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-11-27 12:04:13 +0000 |
commit | b2c434bc5b8467cf4d0dfd20961177772bcf3378 (patch) | |
tree | 811cd88ee4220c40853c2b0c0f3d0754f91c1615 /gui/resources/glreference-man.sh | |
parent | 58fd645f6bf9063a80f6aaeb50d078e1dc68e274 (diff) |
Add hyperlinks for non-ARB extensions too.
Diffstat (limited to 'gui/resources/glreference-man.sh')
-rwxr-xr-x | gui/resources/glreference-man.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/resources/glreference-man.sh b/gui/resources/glreference-man.sh new file mode 100755 index 00000000..20bdaa6a --- /dev/null +++ b/gui/resources/glreference-man.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Script to extract reference URLS for functions documented in OpenGL man pages + +wget -N -r -np http://www.opengl.org/sdk/docs/{man,man2,man3,man4}/ + +find www.opengl.org -type f -name '*.xml' \ +| xargs grep -o '<b class="fsfunc">[^<]*</b>' \ +| sed -e 's/<[^>]*>//g' -e 's@^\(.*\):\(.*\)$@\2\thttp://\1@' |