Index: vectorcast/setup_env.sh =================================================================== diff -u -rdf608540e66b49eb8d755a5d2cb8f6b7c4a94820 -r306cea5ba8853b16f7da4b2b09928db073bb1d5e --- vectorcast/setup_env.sh (.../setup_env.sh) (revision df608540e66b49eb8d755a5d2cb8f6b7c4a94820) +++ vectorcast/setup_env.sh (.../setup_env.sh) (revision 306cea5ba8853b16f7da4b2b09928db073bb1d5e) @@ -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