Coda2.6.2 setup.txt

From New IAC Wiki
Revision as of 23:31, 21 June 2012 by Foretony (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#!/bin/csh
#
# File:
#       $/usr/local/coda/2.6.1/.setup
#
# Description:
#       Setup file for CODA
#
# Set up CODA specific environment variables

        setenv CODA_VERSION 2.6.2
        setenv OSTYPE      `uname|sed 's/-/_/'`

        grep Enterprise /etc/redhat-release >& /dev/null
        if ($status == 0) then
            setenv OSTYPE Linux
        endif

        if ($?CODA != "1") then
            setenv CODA       /home/DAQ/CODA/2.6.2
        endif

        if ($?CDEVROOT != "1") then
            setenv CDEVROOT /site/coda/cdev_1.7.5
        endif
        
        setenv CODA_BIN $CODA/$OSTYPE/bin
        setenv CODA_LIB $CODA/$OSTYPE/lib

        if ( $OSTYPE == "SunOS") then
        setenv CDEV_LIB   $CDEVROOT/lib/solaris
        else
        setenv CDEV_LIB   $CDEVROOT/lib/$OSTYPE
        endif

        setenv CODA_CBIN   $CODA/common/bin

        setenv TCL_ROOT    /usr/local/tclc1.1b2.sol
        setenv TCL_LIBRARY $CODA/common/lib/tcl7.4
        setenv ITCL_LIBRARY $CODA/common/lib/itcl2.0
        setenv TK_LIBRARY  $CODA/common/lib/tk
        setenv ITK_LIBRARY $CODA/common/lib/itk2.0
        setenv DP_LIBRARY  $CODA/common/lib/dp
        setenv TIX_LIBRARY $CODA/common/lib/tix
        
        setenv VXWORKS_ROOT /site/vxworks

#       Overwrite this in your own .cshrc file!
        setenv EXPID LDS

        setenv TCLINCLUDE_DIR $CODA/common/include
        setenv TKINCLUDE_DIR $CODA/common/include

        set lpath = "`echo $path | sed s+$CODA_BIN++g`"
        set path = ($CODA_BIN $lpath)

# Do not clobber LD_LIBRARY_PATH
        if ($?LD_LIBRARY_PATH) then
            setenv LD_LIBRARY_PATH  ${LD_LIBRARY_PATH}:${CODA_LIB}:${CDEV_LIB}
        else
            setenv LD_LIBRARY_PATH  ${CODA_LIB}:${CDEV_LIB}
        endif

        if ($?CDEVDDL != "1") then
            setenv CDEVDDL $CODA_LIB/coda.ddl
        endif
        if ($?CDEVSHOBJ != "1") then
            setenv CDEVSHOBJ $CODA_LIB
        endif

#       debug utility
#-----------------------------------------------
# setenv FFLAGS "-w1 -O -Olimit 1500"
# setenv CFLAGS
# setenv CFLAGS -O
#alias debug "set debug_args=(\!:*); source $DD_BIN/debug.csh; unset debug_args"
#echo "CODA $CODA_VERSION setup script..."
#echo "========================"
#echo ""
#echo "Operating system $OSTYPE."
#echo ""
#echo "Environment"
#echo ""
#echo "Default experiment EXPID        = $EXPID"
#echo "TCL_LIBRARY                     = $TCL_LIBRARY"
#echo "TK_LIBRARY                      = $TK_LIBRARY"
#echo "DP_LIBRARY                      = $DP_LIBRARY"
#echo "TIX_LIBRARY                     = $TIX_LIBRARY"
#echo ""
#echo "Directories"
#echo ""
#echo "Root directory,    CODA         = $CODA"
#echo "Executables,       CODA_BIN     = $CODA_BIN"
#echo "Libraries,         CODA_LIB     = $CODA_LIB"
#echo "VxWorks files,     VXWORKS_ROOT = $VXWORKS_ROOT"
#echo "================================="

setenv AFECS_HOME /home/daq/CODA/2.6.2/afecs
setenv COOL_HOME /home/daq/CODA/2.6.2/afecs/db
setenv SESSION DAQ
setenv MSQL_TCP_HOST daq2
setenv MSQL_HOME $CODA/common/rcdb

setenv JAVA_HOME ~/CODA/Java/jdk1.6.0_17