summaryrefslogtreecommitdiff
path: root/gui/resources/glreference-man.sh
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-27 12:04:13 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-27 12:04:13 +0000
commitb2c434bc5b8467cf4d0dfd20961177772bcf3378 (patch)
tree811cd88ee4220c40853c2b0c0f3d0754f91c1615 /gui/resources/glreference-man.sh
parent58fd645f6bf9063a80f6aaeb50d078e1dc68e274 (diff)
Add hyperlinks for non-ARB extensions too.
Diffstat (limited to 'gui/resources/glreference-man.sh')
-rwxr-xr-xgui/resources/glreference-man.sh8
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@'