add script

This commit is contained in:
Colin Walters 2008-11-10 14:43:16 +00:00
parent 985290b864
commit 6d7e8eb1e8
1 changed files with 25 additions and 0 deletions

25
antlr3 Normal file
View File

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