#! /bin/sh
#
# One word command to start up pgaccess.tcl
 
if  [ -x /usr/bin/wish8.0 ]
then
	WISH=/usr/bin/wish8.0
	export PATH_TO_WISH=$WISH
else
	echo Cannot find wish8.0
	exit 1
fi

# postgresql.env is provided by the package Postgesql
if [ -f /etc/postgresql/postgresql.env ]
then
	. /etc/postgresql/postgresql.env
else
	if [ -z "$PGACCESS_HOME" ]
	then
		export PGACCESS_HOME=/usr/lib/postgresql/pgaccess
	fi
fi

$WISH -f ${PGACCESS_HOME}/main.tcl
