#!/bin/sh

ETPAN_LOG="STACK"
export ETPAN_LOG
ETPAN_ENABLE_LOG_FILE=1
export ETPAN_ENABLE_LOG_FILE
ETPAN_NETWORK_LOG=1
export ETPAN_NETWORK_LOG
ETPAN_DATADIR=./resource
export ETPAN_DATADIR

#if test x`uname` == xDarwin; then
#    open /Applications/Utilities/X11.app
#fi
#if test x`uname` == xDarwin; then
#    if ! netstat -an | grep /tmp/.X11-unix/X > /dev/null; then
#	/usr/X11/bin/Xquartz &
#	/usr/bin/quartz-wm &
#	sleep 1
#    fi
#fi
if test x`uname` == xDarwin; then
	export DISPLAY=:0
fi

./etpanX.bin
