#!/bin/sh
#* ----------------------------------------------------------------------
#*               Proprietary and Confidential Information
#*
#* This material contains, and is part of a computer software program
#* which is, proprietary and confidential information owned by CA, INC. 
#* The program, including this material, may not be duplicated, disclosed
#* or reproduced in whole or in part for any purpose without the express
#* written authorization of CA. All authorized reproductions must be
#* marked with this legend.
#*
#*                      Copyright (c) 2006  CA, Inc.
#*                          All rights reserved
#*
#* ----------------------------------------------------------------------

# envusr for CA Message Queuing [CAM]
#

#  Allow environment vars to be unset
set +u

if [ -z "$CAI_MSQ" ]
then
    if [ -f /etc/catngcampath ]
    then
        CAI_MSQ="`cat /etc/catngcampath`"
    else
        echo "CAM does not seem to be installed properly and fallback"
        echo "action cannot be taken to avoid the problem."
        echo " "
        return
    fi
    export CAI_MSQ
fi

if [ -z "`echo $PATH|grep \"$CAI_MSQ/bin\"`" ]
then
    PATH=$PATH:"$CAI_MSQ/bin"
    export PATH
fi
