diff options
Diffstat (limited to 'demos/gl4java252Check.sh')
-rwxr-xr-x | demos/gl4java252Check.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/demos/gl4java252Check.sh b/demos/gl4java252Check.sh new file mode 100755 index 0000000..5027d97 --- /dev/null +++ b/demos/gl4java252Check.sh @@ -0,0 +1,36 @@ +#! /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 +done + +# +# gluNew check ! +# +for i in *.java ; do + a=$(grep -h -c gluNew $i) + if [ ! \( $a -eq 0 \) ] ; then + if [ $verbose -eq 1 ] ; then + echo $i gluNew used WARNING + else + echo $i + fi + fi +done |