#! /bin/sh

hostName=`hostname`

CADTOOL=latest
SNPS_INST=/home/tools/Synopsys/coretools
#if [ "$hostName" == "linux12" ] ||
#   [ "$hostName" == "server11" ]; then

CADTOOL=P-2019.06-SP1_ms
#CADTOOL=R-2020.12-SP2


#fi

SYNOPSYS=$SNPS_INST/$CADTOOL

DESIGNWARE_HOME=/home/tools/Synopsys/coretools/P-2019.06-SP1
#====================================
# Check out license!

export VCS_HOME=/home/tools/Synopsys/vcs-mx/N-2017.12-SP2

#LM_LICENSE_FILE=27000@server10

#if [ "$hostName" == "linux12" ] ||
#   [ "$hostName" == "server11" ]; then

LM_LICENSE_FILE=27000@server12

#fi
echo "Checkout license in $LICENSE_HOST!"


PATH=$SYNOPSYS/bin:$SYNOPSYS/linux/bin:/usr/dt/bin:/usr/openwin/bin:/usr/bin/X11:$PATH

export SYNOPSYS LM_LICENSE_FILE PATH DESIGNWARE_HOME


#
# 2).parsing user's command and exec PrimeTime product
#
   cmdname=`basename $0`;
   exec $cmdname $@

#
# 3).exit PrimeTime
#
   exit 0





