summaryrefslogtreecommitdiff
path: root/bin/javacc
blob: c82465c5c40e6be4e16f1b912aee860c7c59d094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
MYDIR=`dirname $0` 
JAVACC_JAR=`echo ${MYDIR}/../contrib/javacc.jar`
java -jar $JAVACC_JAR -STATIC=false $1
echo 'package org.gnunet.monkey.parser;' > PACKAGE
for n in *.java
do
 cat $n >> PACKAGE
 mv PACKAGE $n
 echo 'package org.gnunet.monkey.parser;' > PACKAGE
done
mkdir -p org/gnunet/monkey/parser/
mv *.java org/gnunet/monkey/parser
rm -f PACKAGE