#! /bin/sh -f
#############################################################
#############################################################
#
# Installation 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

#############################################################
# Install the CorbaWeb configuration.
#############################################################

echo CorbaWeb will be installed.
  # Install CorbaScript.
  cssh_install
  # Load used OMG IDL specifications into the Interface Repository.
  ir_load ${CS_HOMEDIR}/idl/InterfaceRepository.idl
  ir_load ${CS_HOMEDIR}/idl/CosNaming.idl
  # Start the CorbaWeb HTTP Server.
  corbaweb_start
echo CorbaWeb is installed.

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