#! /bin/sh -f
#############################################################
#############################################################
#
# Deinstallation of the CorbaWeb environment.
#
#############################################################
#############################################################

#############################################################
# Test the CorbaWeb environment.
#############################################################

if test "${CW_BINDIR}" = ""
then
  echo The CW_BINDIR shell variable must be set!
  echo "e.g.:"
  echo "      CW_BINDIR=/path_to_CorbaWeb_binaries"
  echo "      export CW_BINDIR"
  return
fi

#############################################################
# Source the CorbaWeb configuration.
#############################################################

. ${CW_BINDIR}/envi.CorbaWeb.sh

#############################################################
# Deinstall the CorbaWeb configuration.
#############################################################

echo CorbaWeb will be deinstalled.
  # Stop the CorbaWeb HTTP Server.
  corbaweb_stop
  # Deinstall CorbaScript.
  cssh_deinstall
echo CorbaWeb is deinstalled.

#############################################################
# End of the 'CorbaWeb/bin/corbaweb_deinstall' script.
#############################################################
