Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3134 - (show 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 #!/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