Contents of /trunk/opengl-update/update-headers.sh
Parent Directory | Revision Log
Revision 3088 -
(show annotations)
(download)
(as text)
Tue May 29 09:15:27 2018 UTC (6 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 403 byte(s)
Tue May 29 09:15:27 2018 UTC (6 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 403 byte(s)
-adopt new website layout
1 | #!/bin/bash |
2 | |
3 | URL="http://www.opengl.org/registry/api" |
4 | HEADERS="glext.h glxext.h" |
5 | LIB="GL" |
6 | |
7 | for i in ${HEADERS} |
8 | do |
9 | echo "fetching ${URL}/${i}..." |
10 | [[ -f $(pwd)/${i} ]] && rm ${i} |
11 | wget -c ${URL}/${LIB}/${i} |
12 | |
13 | define="$(basename ${i} .h | tr [a-z] [A-Z)" |
14 | grep "^#define ${define//EXT}_${define}_VERSION" ${i} \ |
15 | | sed "s:^#define ${define//EXT}_${define}_VERSION\ \(.*\):\1:" > VERSION_${define} |
16 | done |