summaryrefslogtreecommitdiff
path: root/bin/jtb
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/jtb
parenta1e98fbe7e9f27b994aec552596d8c8fb619fe0d (diff)
move
Diffstat (limited to 'bin/jtb')
-rwxr-xr-xbin/jtb12
1 files changed, 4 insertions, 8 deletions
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/