- dist fix
[oweals/gnunet.git] / bin / javacc
1 #!/bin/sh
2 MYDIR=`dirname $0` 
3 JAVACC_JAR=`echo ${MYDIR}/../contrib/javacc.jar`
4 java -classpath $JAVACC_JAR javacc -STATIC=false $1
5 echo 'package org.gnunet.seaspider.parser;' > PACKAGE
6 for n in *.java
7 do
8  cat $n >> PACKAGE
9  mv PACKAGE $n
10  echo 'package org.gnunet.seaspider.parser;' > PACKAGE
11 done
12 mkdir -p org/gnunet/seaspider/parser/
13 mv *.java org/gnunet/seaspider/parser/
14 rm -f PACKAGE
15