2 # Script to extract reference link for functions documented in OpenGL ARB specs
7 lynx -dump "$URL" | sed -n -e '/^References$/,$s/^ *[0-9]\+\. \+//p' | sed -e 's/ /%20/g'
11 extract_functions () {
12 sed -n -e '/^New Procedures and Functions$/,/^\w/ s/.* \(\w\+\)(.*$/\1/p' "$@" \
13 | sed -e '/^[A-Z]/s/^/gl/'
16 extract_urls http://www.opengl.org/registry/ \
17 | grep '^http://www\.opengl\.org/registry/specs/ARB/.*\.txt$' \
21 wget --quiet -O - $URL \