Index: vectorcast/setup_env.sh =================================================================== diff -u -rcc538186e2781ad1776a673ad5e936e138eb23b1 -r988b8aa7175a0d3de41cb0303eaebecd124fad2f --- vectorcast/setup_env.sh (.../setup_env.sh) (revision cc538186e2781ad1776a673ad5e936e138eb23b1) +++ vectorcast/setup_env.sh (.../setup_env.sh) (revision 988b8aa7175a0d3de41cb0303eaebecd124fad2f) @@ -5,15 +5,25 @@ # *** Insert any custom environment variables needed *** # ******************************************************* +doesDialityDirExist=false +# Check if this script is called from a Diality machine by checking the location that VectorCAST has been installed +if [[ -d /opt/VectorCASTSP3 ]]; then + doesDialityDirExist=true +fi + # VECTORCAST_DIR - Environment variable pointing to the base directory for VectorCAST -if [ -z "$VECTORCAST_DIR" ]; then - export VECTORCAST_DIR=/usr/local/vcast +if [ "$doesDialityDirExist" == false ]; then + export VECTORCAST_DIR=/usr/local/vcast/ +else + export VECTORCAST_DIR=~/vcast fi # VECTOR_LICENSE_FILE - Environment variable pointing to the license file -if [ -z "$VECTOR_LICENSE_FILE" ]; then +if [ "$doesDialityDirExist" == false ]; then export VECTOR_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat +else + export VECTOR_LICENSE_FILE=27000@dvm-util01 fi # VCAST_COMPILER_DIR - Environment variable pointing to the base directory of compiler installation