2 # sh port by Jan Lehnardt <jan@php.net>
3 if [ -z "$ANTLRJAR" ]; then
4 ANTLJAR
=bintools
/antlr.jar
7 # REM First nuke the old generated code. This is necessary because when Antlr
8 # REM runs it doesn't update the modified time of the generated files if no changes
9 # REM are applied to them.
10 # REM This causes the build to unnecessarily rerun antlr because it never
11 # REM knows the generated files are up to date.
12 # we touch them manually later (Jan)
14 $JAVA -classpath "$ANTLJAR:$CLASSPATH" antlr.Tool
-o Fabric
/GeneratedCode Fabric
/Grammar.g
2>&1
15 touch Fabric
/GeneratedCode
/*.cpp