jFuzzyLogic/fcl/antlr.sh

18 lines
513 B
Bash
Raw Permalink Normal View History

2014-12-19 14:30:46 +01:00
#!/bin/sh
OUTDIR="./output"
rm -vf ../src/net/sourceforge/jFuzzyLogic/fcl/FCLLexer.java \
../src/net/sourceforge/jFuzzyLogic/fcl/FCLLexerTokenTypes.java \
../src/net/sourceforge/jFuzzyLogic/fcl/FCLParser.java \
../src/net/sourceforge/jFuzzyLogic/fcl/FCLTreeParser.java
rm -rvf $OUTDIR
ANTLRJAR=`ls $PWD/../lib/antlr*.jar`
java -cp $ANTLRJAR org.antlr.Tool -o $OUTDIR Fcl.g
echo "Copying files"
cp $OUTDIR/FclLexer.java $OUTDIR/FclParser.java $OUTDIR/Fcl.tokens ../src/net/sourceforge/jFuzzyLogic/fcl