aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/antlr/files/runantlr
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/antlr/files/runantlr')
-rwxr-xr-xrecipes/antlr/files/runantlr11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/antlr/files/runantlr b/recipes/antlr/files/runantlr
new file mode 100755
index 0000000000..b924bf477d
--- /dev/null
+++ b/recipes/antlr/files/runantlr
@@ -0,0 +1,11 @@
+#!/bin/sh
+echo Running 'java antlr.Tool $*' with @JAR_FILE@ appended to the CLASSPATH variable
+
+export CLASSPATH
+CLASSPATH=$CLASSPATH:@JAR_FILE@
+
+if [ ! $JAVA ];then
+ JAVA=java
+fi
+
+$JAVA antlr.Tool $*