summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-22 14:16:59 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-22 14:16:59 +0000
commit1d915299939e745e75cdd9bca6f970eb1d6fb38a (patch)
treeb7d1b0dba0ac99d98f3a4120c919058cdcca85a2 /bin
parenta1e98fbe7e9f27b994aec552596d8c8fb619fe0d (diff)
move
Diffstat (limited to 'bin')
-rwxr-xr-xbin/javacc9
-rw-r--r--bin/javacc.jarbin298569 -> 0 bytes
-rwxr-xr-xbin/jtb12
3 files changed, 9 insertions, 12 deletions
diff --git a/bin/javacc b/bin/javacc
index 494d03d75..c82465c5c 100755
--- a/bin/javacc
+++ b/bin/javacc
@@ -1,7 +1,7 @@
#!/bin/sh
-
-cd "$@"/org/gnunet/seaspider/parser
-javacc -STATIC=false C.out.jj
+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
@@ -9,6 +9,7 @@ do
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
diff --git a/bin/javacc.jar b/bin/javacc.jar
deleted file mode 100644
index 2550727ee..000000000
--- a/bin/javacc.jar
+++ /dev/null
Binary files differ
diff --git a/bin/jtb b/bin/jtb
index 11fa581d2..d2fb2c635 100755
--- a/bin/jtb
+++ b/bin/jtb
@@ -1,11 +1,7 @@
#!/bin/sh
-
MYDIR=`dirname $0`
JTB_JAR=`echo ${MYDIR}/../contrib/jtb.jar`
-cd "$@"
-if [ -d "org/gnunet/seaspider/parser" ]; then
- mkdir -p org/gnunet/seaspider/parser
-fi
-cd org/gnunet/seaspider/parser
-java -jar $JTB_JAR -printer -jd -np org.gnunet.seaspider.parser.nodes -vp org.gnunet.seaspider.parser.visitors -o C.out.jj "$@/C.jj"
-
+java -jar $JTB_JAR -printer -jd -np org.gnunet.seaspider.parser.nodes -vp org.gnunet.seaspider.parser.visitors -o C.out.jj "$1"
+rm -rf org/gnunet/seaspider/parser/
+mkdir -p org/gnunet/seaspider/parser/
+mv nodes visitors org/gnunet/seaspider/parser/