aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/lsGL23_unique.sh
blob: 560a3e4cd2dd857dd1071947812ca43c50853d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

BUILDDIR=$1
shift
if [ -z "$BUILDDIR" ] ; then
    echo "usage $0 <BUILDDIR>"
    exit 1
fi

idir=$BUILDDIR/jogl/gensrc/classes/com/jogamp/opengl

SOURCE="$idir/GL.java $idir/GLES2.java $idir/GL2ES2.java $idir/GL3.java $idir/GL2.java $idir/GL2GL3.java"

echo GL2GL3 to GL2 GL3 Gl2ES2 GLES2 GL defines
sort $SOURCE | uniq -u | grep GL_ | grep -v "Part of <code>" | awk ' { print $5 } '

echo GL2GL3 to GL2 GL3 Gl2ES2 GLES2 GL functions
sort $SOURCE | uniq -u | grep "public [a-z0-9_]* gl"