# ======================================================================
# epicsSetup.bash
#
# Description: to set up the environment for installation and runtime. 
#              This configuration has been tested for RHEL4: linux-x86 
# Usage:       source epicsSetup.bash 
# ======================================================================

umask 002

# Environment variables required by EPICS installation
# Please redefine the following variables for your local installation. 

#----------------------------------------------------------------------
unset  STRIP_CONFIGFILE_DIR
unset  EPICS_HOST_ARCH
export EPICS_HOST_ARCH=linux-x86

unset  EPICS_SITE_TOP
export EPICS_SITE_TOP=/usr/local/lcls/epics/TestArea/judy/epics

unset  EPICS_BASE_VER
export EPICS_BASE_VER=base-R3-14-9-lcls1

unset  RTEMS_SITE_TOP
export RTEMS_SITE_TOP=/usr/local/lcls/epics/TestArea/judy/rtems

unset  RTEMS_VER
export RTEMS_VER=rtems-4.7.1

unset  EXTENSIONS_SITE_TOP
export EXTENSIONS_SITE_TOP=/usr/local/lcls/epics/TestArea/judy/epics/extensions

unset  EXTENSIONS_VER
export EXTENSIONS_VER=extensions-R3-14-9

unset  EPICS_MODULES_TOP
export EPICS_MODULES_TOP=/usr/local/lcls/epics/TestArea/judy/epics/modules

#--------------------------------------------------------------------------

unset STRIP_CONFIGFILE_DIR

# Runtime environment setup

unset  EPICS_BASE_RELEASE
export EPICS_BASE_RELEASE=${EPICS_SITE_TOP}/base/${EPICS_BASE_VER}

unset  EPICS_EXTENSIONS
export EPICS_EXTENSIONS=${EXTENSIONS_SITE_TOP}/${EXTENSIONS_VER}

unset  EPICS_SETUP
export EPICS_SETUP=${EPICS_SITE_TOP}/setup

LD_LIBRARY_PATH=${EPICS_EXTENSIONS}/lib/${EPICS_HOST_ARCH}:${EPICS_BASE_RELEASE}/lib/${EPICS_HOST_ARCH}

# Now let's setup CVS to work over SSH
#export CVS_RSH=/usr/bin/ssh
export PATH=./:$EPICS_BASE_RELEASE/bin/$EPICS_HOST_ARCH:$EPICS_EXTENSIONS/bin/$EPICS_HOST_ARCH:$HOME/bin:$PATH

# EPICS environment variables 
export EPICS_TS_MIN_WEST=300
export EPICS_AR_PORT=7002
export EPICS_IOC_LOG_PORT=6500
export EPICS_CA_ADDR_LIST=""
export EPICS_CA_AUTO_ADDR_LIST=YES

#Large Array support for CA client (default was 16,384 bytes)
export EPICS_CA_MAX_ARRAY_BYTES=8000000

#  Here we will set-up some EDM variables
export EDMOBJECTS=${EPICS_EXTENSIONS}/pref/edm
export EDMPVOBJECTS=${EPICS_EXTENSIONS}/pref/edm
export EDMFILES=${EPICS_EXTENSIONS}/pref/edm
export EDMHELPFILES=${EPICS_EXTENSIONS}/src/edm/helpFiles
export EDMLIBS=${EPICS_EXTENSIONS}/lib/$EPICS_HOST_ARCH
export EDMLIB_SUFFIX=so
export EDMACTIONS=${EPICS_EXTENSIONS}/pref/edm
export EDMDATAFILES=./




