#!  /bin/bash
############################################################################
# Copyright (c) 2001-2002 Compaq Computer Corporation, ALL RIGHTS RESERVED.
# Compaq Confidential
############################################################################
#
#  $RCSfile: cpqimlview,v $
#
#  $Revision: 1.4 $
#
#  $Author: jlong $
#
#  $Date: 2002/01/25 22:35:30 $
#
#############################################################################/

#rcsid = "$RCSfile: cpqimlview,v $ $Revision: 1.4 $ COMPAQ EFS $Date: 2002/01/25 22:35:30 $"

if [ -d /usr/lib/tclX8.3 ]
then
	if [ ! -e /usr/lib/libtclx8.3.so ]
	then
		ln -s /usr/lib/libtclx.so.0 /usr/lib/libtclx8.3.so
	fi
elif [ ! -d /usr/lib/tclX ]
then
  		echo "ERROR: tclX not installed."
  		echo "tclX must be installed to use the IML viewer."
  		exit 1
fi

if [ -e /usr/bin/tixwish ]
then
  TIXWISH=/usr/bin/tixwish
elif [ -e /usr/bin/tixwish4.1.8.0 ]
then
  TIXWISH=/usr/bin/tixwish4.1.8.0
elif [ -e /usr/bin/tixwish4.1.8.3 ]
then
  TIXWISH=/usr/bin/tixwish4.1.8.3
else
  echo "ERROR: tixwish not installed."
  echo "X-Windows must be installed to use the IML viewer."
  exit 1
fi

$TIXWISH /sbin/cpqimlview.tcl

exit 0
