summaryrefslogtreecommitdiffstats
path: root/doc/manual/example2/gen.sh
blob: e1b34cce442be4ce46c2af7e849a55300275334c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

JAVA=java
GLUEGEN_JAR=../../../build/gluegen.jar
ANTLR_JAR=../../../../../ANTLR/antlr-2.7.5.jar

NAME=`uname`

if [[ $NAME == "Windows*" ]] ; then
  SEP=\;
elif [[ $NAME == "CYGWIN*" ]] ; then
  SEP=\;
else
  SEP=:
fi

java -cp $GLUEGEN_JAR$SEP$ANTLR_JAR com.jogamp.gluegen.GlueGen -I. -Ecom.jogamp.gluegen.JavaEmitter -Cfunction.cfg function.h