]> git.cworth.org Git - apitrace/blobdiff - gui/resources/glreference-man.sh
Add hyperlinks for non-ARB extensions too.
[apitrace] / gui / resources / glreference-man.sh
diff --git a/gui/resources/glreference-man.sh b/gui/resources/glreference-man.sh
new file mode 100755 (executable)
index 0000000..20bdaa6
--- /dev/null
@@ -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@'