#!/bin/sh
#
# Frontend shell script to execute the dm_gui configuration
# application
#

GUIDIR=/usr/conf/digi/dgdxb/gui
TIXWISH=${GUIDIR}/tcl/bin/tixwish4.1.8.0

if [ \! -d ${GUIDIR} ]
then
	echo "ERROR: dm_gui not properly installed." >&2
	echo "ERROR: dm_gui directory not found." >&2
	exit 1
fi

if [ \! -x ${TIXWISH} ]
then
	echo "ERROR: dm_gui not properly installed." >&2
	echo "ERROR: tixwish not found." >&2
	exit 1
fi

TCL_LIBRARY=${GUIDIR}/tcl/lib/tcl8.0
TK_LIBRARY=${GUIDIR}/tcl/lib/tk8.0

${TIXWISH} ${GUIDIR}/dm_gui.tcl
