6d7e8eb
#!/bin/sh
6d7e8eb
#
6d7e8eb
# antlr3 script, modified from antlr script from:
6d7e8eb
# JPackage Project <http://www.jpackage.org/>
6d7e8eb
6d7e8eb
# Source functions library
6d7e8eb
if [ -f /usr/share/java-utils/java-functions ] ; then
6d7e8eb
  . /usr/share/java-utils/java-functions
6d7e8eb
else
6d7e8eb
  echo "Can't find functions library, aborting"
6d7e8eb
  exit 1
6d7e8eb
fi
6d7e8eb
6d7e8eb
# Configuration
6d7e8eb
MAIN_CLASS="org.antlr.Tool"
6d7e8eb
BASE_FLAGS=""
6d7e8eb
BASE_JARS="antlr.jar stringtemplate.jar antlr3.jar"
6d7e8eb
6d7e8eb
# Set parameters
6d7e8eb
set_jvm
6d7e8eb
set_classpath $BASE_JARS
6d7e8eb
set_flags $BASE_FLAGS
6d7e8eb
6d7e8eb
# Let's start
6d7e8eb
run "$@"