summaryrefslogtreecommitdiff
path: root/bin/javacc
blob: 979b6f6631664c4a7d1ecb2f3ae53ba3b819193f (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 -classpath $JAVACC_JAR javacc -STATIC=false $1
echo 'package org.gnunet.seaspider.parser;' > PACKAGE
for n in *.java
do
 cat $n >> PACKAGE
 mv PACKAGE $n
 echo 'package org.gnunet.seaspider.parser;' > PACKAGE
done
mkdir -p org/gnunet/seaspider/parser/
mv *.java org/gnunet/seaspider/parser/
rm -f PACKAGE