#!/bin/sh

TOPDIR=`pwd`/../../../../../..
echo ${TOPDIR}

PGHOME=/usr/local/pgsql815lt
export PGHOME

CLASSPATH=${TOPDIR}/jars/org.postgresforest.tool.lib.jar:${CLASSPATH}
CLASSPATH=${TOPDIR}/jars/org.postgresforest.tool.cli.jar:${CLASSPATH}
CLASSPATH=${TOPDIR}/jars/org.postgresforest.tool.tests.jar:${CLASSPATH}
CLASSPATH=${TOPDIR}/lib/junit.jar:${CLASSPATH}
CLASSPATH=${TOPDIR}/lib/postgresql-8.1-407.jdbc3.jar:${CLASSPATH}
CLASSPATH=${TOPDIR}/lib/postgresforest40.jar:${CLASSPATH}
CLASSPATH=${TOPDIR}/lib/commons-cli-1.0.jar:${CLASSPATH}
export CLASSPATH

HOST=localhost
PORT=9998
USER=forest
PASS=forest
USER=snaga
PASS=snaga
LOG=trace
GSC=gsctest

HOST_0=localhost
PORT_0=9998
HOST_1=localhost
PORT_1=9999
HOST_2=localhost
PORT_2=10000
HOST_3=localhost
PORT_3=10001

CMD_TOOL="java -cp ${CLASSPATH} org.postgresforest.tool.cli.ForestTool"


${CMD_TOOL} -h ${HOST} -p $[PORT] -g ${GSC} -U ${USER} -W ${PASS} -l ${LOG} $*
