diff options
author | Sven Gothel <[email protected]> | 2001-02-13 05:39:47 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-02-13 05:39:47 +0000 |
commit | f36d363033840c84c76bf5285a252846aa9a7e96 (patch) | |
tree | 677c2801966164f79110bdc1038b997f037399f0 /demos/GL4JavaCheckMakeCurrentFree.sh | |
parent | 3e2b16a820bfe03f8f3837c3aaa615c8c4b7f18c (diff) |
JAWT Support JDK >=1.3rel-2-5-2-0-test1
Diffstat (limited to 'demos/GL4JavaCheckMakeCurrentFree.sh')
-rwxr-xr-x | demos/GL4JavaCheckMakeCurrentFree.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/demos/GL4JavaCheckMakeCurrentFree.sh b/demos/GL4JavaCheckMakeCurrentFree.sh new file mode 100755 index 0000000..16a9726 --- /dev/null +++ b/demos/GL4JavaCheckMakeCurrentFree.sh @@ -0,0 +1,30 @@ +#! /bin/sh + +verbose=1 + +if [ "$1" = "-quiet" ] ; then + verbose=0 +fi + +# +# MakeCurrent/Free check +# +for i in *.java ; do + a=$(grep -h -c gljMakeCurrent $i) + b=$(grep -h -c gljFree $i) + if [ ! \( $a -eq $b \) ] ; then + if [ $verbose -eq 1 ] ; then + echo $i MakeCurrent/Free ERROR + else + echo $i + fi + fi + if [ \( $a -eq 0 \) ] ; then + if [ $verbose -eq 1 ] ; then + echo $i MakeCurrent never called ERROR + else + echo $i + fi + fi +done + |