+++ /dev/null
-#!/bin/sh
-# Script to extract reference URLs for functions documented in OpenGL ARB specs
-
-extract_urls () {
- for URL
- do
- lynx -dump "$URL" | sed -n -e '/^References$/,$s/^ *[0-9]\+\. \+//p' | sed -e 's/ /%20/g'
- done
-}
-
-extract_functions () {
- sed -n -e '/^New Procedures and Functions$/,/^\w/ s/.* \(\w\+\)(.*$/\1/p' "$@" \
- | sed -e '/^[A-Z]/s/^/gl/'
-}
-
-extract_urls http://www.opengl.org/registry/ \
-| grep '^http://www\.opengl\.org/registry/specs/ARB/.*\.txt$' \
-| sort -u \
-| while read URL
-do
- wget --quiet -O - $URL \
- | extract_functions \
- | while read FUNCTION
- do
- echo "$FUNCTION $URL"
- done
-done
-
-
-