Annotation of /tags/openglupdate-2_2_18/update-headers.sh
Parent Directory | Revision Log
Revision 1875 -
(hide annotations)
(download)
(as text)
Tue Jul 3 09:31:24 2012 UTC (12 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 387 byte(s)
Tue Jul 3 09:31:24 2012 UTC (12 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 387 byte(s)
tagged 'openglupdate-2_2_18'
1 | niro | 1320 | #!/bin/bash |
2 | |||
3 | URL="http://www.opengl.org/registry/api" | ||
4 | HEADERS="glext.h glxext.h" | ||
5 | |||
6 | for i in ${HEADERS} | ||
7 | do | ||
8 | echo "fetching ${URL}/${i}..." | ||
9 | [[ -f $(pwd)/${i} ]] && rm ${i} | ||
10 | wget -c ${URL}/${i} | ||
11 | niro | 1527 | |
12 | define="$(basename ${i} .h | tr [a-z] [A-Z)" | ||
13 | grep "^#define ${define//EXT}_${define}_VERSION" ${i} \ | ||
14 | | sed "s:^#define ${define//EXT}_${define}_VERSION\ \(.*\):\1:" > VERSION_${define} | ||
15 | niro | 1320 | done |