diff options
author | Sven Gothel <[email protected]> | 2000-11-18 06:43:49 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2000-11-18 06:43:49 +0000 |
commit | 880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch) | |
tree | bdafb71416f176d2a4b73bf716c9dc3f13685a8b /C2J/mesa33-header/prepare-enum.sh |
Initial revision
Diffstat (limited to 'C2J/mesa33-header/prepare-enum.sh')
-rwxr-xr-x | C2J/mesa33-header/prepare-enum.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/C2J/mesa33-header/prepare-enum.sh b/C2J/mesa33-header/prepare-enum.sh new file mode 100755 index 0000000..3ddf248 --- /dev/null +++ b/C2J/mesa33-header/prepare-enum.sh @@ -0,0 +1,22 @@ +#! /bin/sh + +echo WARNING WARNING +echo This generated files are heavily edited ! +echo We exit now ... +exit 0 + +grep "#define GL_" gl.h > gl-enum-auto.orig.pre +grep "#define GL_" glext.h >> gl-enum-auto.orig.pre +cat gl-enum-auto.orig.pre | sort -u -b | \ +awk -f pre2orig-enum.awk | \ +grep -v -e "?" -e "GL_FALSE" -e "GL_TRUE" \ + -e "= 1,$" > gl-enum-auto.orig +rm -f gl-enum-auto.orig.pre +echo please check generated file gl-enum-auto.orig + +grep "#define GLU_" glu.h > glu-enum-auto.orig.pre +cat glu-enum-auto.orig.pre | sort -u -b | \ +awk -f pre2orig-enum.awk | \ +grep -v -e "?" -e "= 1,$" > glu-enum-auto.orig +rm -f glu-enum-auto.orig.pre +echo please check generated file glu-enum-auto.orig |