summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSafey A.Halim <safey.allah@gmail.com>2010-10-22 08:26:04 +0000
committerSafey A.Halim <safey.allah@gmail.com>2010-10-22 08:26:04 +0000
commitcebd65e93729bac432f3bc9cde72db27e7ae9983 (patch)
treeeaf08768f994e5b26b5e700e9798ae31a54524e9 /bin
parent58d9e7da240d42030d5a14a27e74af118d6bc005 (diff)
jtb script checks for the existence of the syntax tree hierarchy before creating it.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/jtb4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/jtb b/bin/jtb
index 8f23675ce..4656486fc 100755
--- a/bin/jtb
+++ b/bin/jtb
@@ -3,6 +3,8 @@
MYDIR=`dirname $0`
JTB_JAR=`echo ${MYDIR}/../contrib/jtb.jar`
cd "$@"
-mkdir -p org/gnunet/seaspider/parser
+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" \ No newline at end of file