#!/bin/csh -f
#########################################################################
#
# venvEnvs -- sets up user access to the Verilog
# environment hierarchy.  
#
# Notes: append or incorporate in your .cshrc (or equivalent)
#        and then source ~/.cshrc
#
#        *DON'T just set env's temporarily in the shell you 
#         start verilog in, spawned jobs get a new shell
#        *if you have CDS_INST_DIR set, it will override the
#         setting these environment variables
#        *if you use emacs v18 or earlier, you may be using
#         EMACSLOADPATH.  It is not needed and conflicts with
#         lemacs 19.6 setup. unsetenv it, fix the conflict, and
#         change to setting load-path in your ~/.emacs,if needed
#
# VENVHOME is the location where the Verilog 2.x hierarchy has been 
# installed. It is only used to aid in setting the other 
# environment variables in this sample script
#
# XAPPLRESDIR - identifies where the Verilog app-defaults file, "Verilog",
# will be found. X windows provides many alternate mechanisms to 
# insure this file will be found when verilog is run. This is one way to
# do it.  Refer to Cadence installation documentation for other options.
#
# PATH - Two directories within VENVHOME must be include in your search path
# environment variable, PATH.  This sample prepends them to an existing PATH
# variable
#
# LD_LIBRARY_PATH - Any Cadence supplied shared libraries used with Verilog 2.x are
# found through LD_LIBRARY_PATH. This sample prepends them to an existing PATH
# variable. If your X11 libraries are in a non-standard location, they also
# should be added to your LD_LIBRARY_PATH, e.g., /util/openwin3/lib
#
#############################################################################

setenv VENVHOME           <install_dir>        
setenv XAPPLRESDIR        ${VENVHOME}/tools/verilog/etc
setenv XNLSPATH           ${VENVHOME}/tools/verilog/etc/nls
setenv XKEYSYMDB          ${VENVHOME}/tools/verilog/etc/XKeysymDB
setenv VENV_PATH          "${VENVHOME}/tools/bin:${VENVHOME}/tools/dfII/bin"
setenv VENV_LD_LIB_PATH   ${VENVHOME}/tools/lib    
setenv PATH               "${VENV_PATH}:$PATH"   
setenv LD_LIBRARY_PATH    "${VENV_LD_LIB_PATH}:$LD_LIBRARY_PATH" 
