blob: 16a97261f08bea1d1b06a8bfcf35667cec31f21f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|