File: glreference-man.sh

package info (click to toggle)
apitrace 11.1%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 13,648 kB
  • sloc: cpp: 183,110; python: 33,685; ansic: 25,073; sh: 143; makefile: 88
file content (8 lines) | stat: -rwxr-xr-x 350 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/bin/bash
# Script to extract reference URLS for functions documented in OpenGL man pages

wget -N -r -np https://www.opengl.org/sdk/docs/{man,man2,man3,man4}/

find www.opengl.org -type f -name '*.xml' -o -name '*.xhtml' \
| xargs grep -o '<\(b\|strong\) class="fsfunc">[^<]*</\1>' \
| sed -e 's/<[^>]*>//g' -e 's@^\(.*\):\(.*\)$@\2\thttps://\1@'