diff options
author | Michael Bien <[email protected]> | 2009-07-24 18:33:42 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-07-24 18:33:42 +0200 |
commit | 1737ee672c05d956a99a91d9894556230f6363bc (patch) | |
tree | 365a728def62f6c5069a2dcd9a1f6521330e2212 /resources/example1/gen.sh |
initial import of JOCL the Java Bindings to OpenCL prototype
Diffstat (limited to 'resources/example1/gen.sh')
-rw-r--r-- | resources/example1/gen.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/resources/example1/gen.sh b/resources/example1/gen.sh new file mode 100644 index 00000000..6fb971e2 --- /dev/null +++ b/resources/example1/gen.sh @@ -0,0 +1,17 @@ +#!/bin/ksh + +JAVA=java +GLUEGEN_JAR=../../../build/gluegen.jar +ANTLR_JAR=../../../../../ANTLR/antlr-2.7.4/antlr.jar + +NAME=`uname` + +if [ $NAME="Windows*" ] ; then + SEP=\; +elif [ $NAME="CYGWIN*" ] ; then + SEP=\; +else + SEP=: +fi + +java -cp $GLUEGEN_JAR$SEP$ANTLR_JAR com.sun.gluegen.GlueGen -I. -Ecom.sun.gluegen.JavaEmitter -Cfunction.cfg function.h |