#!/bin/sh

# the location where we'll store compiled class files
export CLASSDIR=./classes

# add JSDK to classpath
export CLASSPATH=/usr/local/jsdk/jsdk.jar:$CLASSPATH

# add JDBC to classpath
export CLASSPATH=/usr/local/mm.mysql/mysql.jar:$CLASSPATH

# add CLASSDIR to classpath
export CLASSPATH=$CLASSDIR:$CLASSPATH

rm -r $CLASSDIR
mkdir $CLASSDIR

javac -d $CLASSDIR honeylocust/msxml/parser/*.java honeylocust/msxml/om/*.java honeylocust/msxml/util/*.java && \
javac -d $CLASSDIR tapir/weeds/representation/*.java && \
javac -d $CLASSDIR tapir/weeds/*.java && \
(cd $CLASSDIR ; jar cvf ../weeds/weeds2.jar .)
