set a bunch of svn:executable properties
[couchdbimport.git] / CouchProjects / Fabric / AntlrCodeGen.sh
blob2067c1886616021c667e2b19e3647c3addf04e34
1 #!/bin/sh
2 # sh port by Jan Lehnardt <jan@php.net>
3 if [ -z "$ANTLRJAR" ]; then
4 ANTLJAR=bintools/antlr.jar
5 fi
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
16 echo done