Magellan Linux

Annotation of /tags/openglupdate-2_3_14/update-headers.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3134 - (hide annotations) (download) (as text)
Thu Jul 2 19:14:28 2020 UTC (3 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 403 byte(s)
tagged 'openglupdate-2_3_14'
1 niro 1320 #!/bin/bash
2    
3     URL="http://www.opengl.org/registry/api"
4     HEADERS="glext.h glxext.h"
5 niro 3088 LIB="GL"
6 niro 1320
7     for i in ${HEADERS}
8     do
9     echo "fetching ${URL}/${i}..."
10     [[ -f $(pwd)/${i} ]] && rm ${i}
11 niro 3088 wget -c ${URL}/${LIB}/${i}
12 niro 1527
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 niro 1320 done