##################################################################
#
#  Tdxcshrc file for Vervent's TDX software
#
#  This file is located in <installdir>/TDX$TDX_VERSION/machine_ind/pub
#  It can be copied to each user's $HOME directory in order to run
#  the TDX software. For example (if <installdir> is $HOME/tdx),
#
#    cp $HOME/tdx/TDX$TDX_VERSION/sun4_SunOS5/pub/Tdxcshrc $HOME/.tdxcshrc
#
#  Then in each user's $HOME/.cshrc file, add the following:
#
#     ######## Vervent TDX cshrc setup #############
#     if ( -r $HOME/.tdxcshrc ) then
#         source $HOME/.tdxcshrc
#     endif
#
##################################################################

#### Edit the following line based on your path to TDX ####
set TDX_INSTALL_ROOT = /space/rel_7.0
set TDX_VERSION = <tdx_version>

set TDX_HOSTTYPE = `$TDX_INSTALL_ROOT/TDX$TDX_VERSION/machine_ind/pub/tdx_platform _`
setenv TDX_ROOT $TDX_INSTALL_ROOT/TDX$TDX_VERSION/$TDX_HOSTTYPE

# Location of the license file if license is required
if ( -r ${TDX_ROOT}/license.dat ) then
    if ( ${?LM_LICENSE_FILE} == 0 ) then
        setenv LM_LICENSE_FILE "${TDX_ROOT}/license.dat"
    else
        setenv LM_LICENSE_FILE "${TDX_ROOT}/license.dat:${LM_LICENSE_FILE}"
    endif
endif


# Add Vervent TDX path into user's path (tdx executables chosen first)
set path=( ${TDX_ROOT}/bin $path )

# Location of man pages
if ( ${?MANPATH} == 0 ) then
    setenv MANPATH "${TDX_ROOT}/man"
else
    setenv MANPATH "${TDX_ROOT}/man:${MANPATH}"
endif
