-
Notifications
You must be signed in to change notification settings - Fork 0
/
.setup
executable file
·153 lines (131 loc) · 5.13 KB
/
.setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#
# EPICS .setup file
#
if ( ($OSTYPE == "SunOS") && ($MACHINE == "sun4u") ) then
##setenv EPICS_HOST_ARCH solaris-sparc64
setenv EPICS_HOST_ARCH solaris-sparc
endif
if ( ($OSTYPE == "SunOS") && ($MACHINE == "i86pc") ) then
setenv EPICS_HOST_ARCH solaris-x86
endif
if ( ($OSTYPE == "Linux") && ($MACHINE == "i686" || $MACHINE == "i686_vme") ) then
setenv EPICS_HOST_ARCH linux-x86
endif
##???
if ( ($OSTYPE == "Linux") && ($MACHINE == "x86_64") ) then
setenv EPICS_HOST_ARCH linux-x86
endif
##???
if ( ($OSTYPE == "Linux") && ($MACHINE == "ppc") ) then
setenv EPICS_HOST_ARCH linux-ppc
endif
if ( ($OSTYPE == "Darwin") && ($MACHINE == "powerpc") ) then
setenv EPICS_HOST_ARCH darwin-ppc
endif
if ( ($OSTYPE == "Linux") && ($MACHINE == "armv7l") ) then
setenv EPICS_HOST_ARCH linux-armv7l
endif
if ( ($OSTYPE == "Linux") && ($MACHINE == "nios2") ) then
setenv EPICS_HOST_ARCH linux-nios2
endif
#
#
#
setenv EPICS_VER 3.14.12.3
#
setenv EPICS_BASE $CLAS/R$EPICS_VER/base
setenv EPICS_EXTENSIONS $CLAS/R$EPICS_VER/extensions
setenv EPICS_SUPPORT $CLAS/R$EPICS_VER/support
setenv EPICS_SYNAPPS $CLAS/R$EPICS_VER/synApps/synApps_5_5/support/
setenv EPICS_BASE_LIB $EPICS_BASE/lib/$EPICS_HOST_ARCH
setenv EPICS_BASE_INC $EPICS_BASE/include
setenv PATH "$PATH":$EPICS_BASE/bin/$EPICS_HOST_ARCH
####setenv EPICS_CA_ADDR_LIST "129.57.255.4 129.57.163.255"
setenv EPICS_CA_ADDR_LIST "129.57.255.4 129.57.163.255 129.57.57.188 129.57.99.255 129.57.191.255 129.57.68.97 129.57.86.16 129.57.86.29 129.57.86.37"
#setenv EPICS_CA_ADDR_LIST "129.57.167.14"
#
# following for other applications
#
setenv PATH "$PATH":$EPICS_EXTENSIONS/bin/$EPICS_HOST_ARCH
if ($?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH":"$EPICS_BASE/lib/$EPICS_HOST_ARCH":"$EPICS_EXTENSIONS/lib/$EPICS_HOST_ARCH"
else
setenv LD_LIBRARY_PATH "$EPICS_BASE/lib/$EPICS_HOST_ARCH":"$EPICS_EXTENSIONS/lib/$EPICS_HOST_ARCH"
endif
#
#
#
# needed by extensions
##################sergey: adjust for new structure!!!
###setenv EPICS $CLAS/R$EPICS_VER
###source $CLAS/R$EPICS_VER/EPICS/.setup
#
#
# tring to avoid duplicate broadcast addresses if we already attached to that network phisically
#
set ipList=" "
if ( `uname -s` == 'SunOS' ) then
set ifcCommand = "/usr/sbin/ifconfig -a"
else
set ifcCommand = "/sbin/ifconfig"
endif
#echo ifcCommand = $ifcCommand
foreach ip ($EPICS_CA_ADDR_LIST)
# echo checking list = $ipList ip = $ip
$ifcCommand |grep $ip > /dev/null || set ipList="$ipList $ip"
# echo list = $ipList
end
setenv EPICS_CA_ADDR_LIST "$ipList"
unset ipList
unset ifcCommand
#
# end of broadcast duplicate removal
#
############################################################################
# old epics setup
###oldepics### setenv EPICS /home/epics/R3.13.4
###oldepics### setenv EPICS_CA_ADDR_LIST "129.57.163.255 129.57.255.4"
###oldepics### setenv EPICS_CAS_INTF_ADDR_LIST clon10.jlab.org
###oldepics### setenv EPICSLIB /home/epics/R3.13.4/base/lib/solaris
############################################################################
#
#-------------- new installation -------------------------------
###setenv CLAS /usr/local/clas12 # should be defined in user's .cshrc file
setenv EPICSB_DRIVERS "$CLAS/epics/drivers"
#=============== smi++ and dim =====================================
setenv SMIDIR /apps/smixx
setenv SMIRTLDIR /apps/smixx
setenv OS Linux
setenv DIM_DNS_NODE clonpc3
setenv DIMDIR /apps/dim
setenv ODIR linux
setenv LD_LIBRARY_PATH "$DIMDIR/$ODIR":"$SMIDIR/$ODIR":"$LD_LIBRARY_PATH"
setenv PATH "$PATH":"$DIMDIR"/"$ODIR"
setenv PATH "$PATH":"$SMIDIR"/"$ODIR"
#====================================================================
#my: to use the libnetsnmp.so.25
setenv LD_LIBRARY_PATH "/usr/local/lib":"$LD_LIBRARY_PATH"
# set env var EPICS just for convenience - EPICS does not need it
setenv EPICS $CLAS/epics
#=============== epics-qt N1 ============================================
setenv MYEPICSQT $CLAS/epics/qt/epicsqt_v1
setenv QCAQTDIR /apps/Trolltech/Qt
setenv QCAFRAMEWORK "$MYEPICSQT"/ca_framework
setenv QT_PLUGIN_PATH
setenv LD_LIBRARY_PATH "$MYEPICSQT"/ca_framework/qwt-5.2.1/lib:"$LD_LIBRARY_PATH"
setenv QT_PLUGIN_PATH "$MYEPICSQT"/ca_framework/qwt-5.2.1/designer/plugins:"$QT_PLUGIN_PATH"
setenv LD_LIBRARY_PATH "$MYEPICSQT"/ca_framework/plugins:"$LD_LIBRARY_PATH"
setenv QT_PLUGIN_PATH "$MYEPICSQT"/ca_framework/plugins:"$QT_PLUGIN_PATH"
#=========================================================================
setenv PATH "$CLAS"/epics/bin/"$EPICS_HOST_ARCH":"$PATH"
#=========================================================================
alias cd0 "cd $CLAS/epics/drivers/CAEN_HV/level0/IocShell"
alias cd0o "cd $CLAS/epics/drivers/CAEN_HV/level0/iocShellOld"
alias cdqt "cd $CLAS/epics/qt/epicsqt_v1/ca_framework/plugins"
alias cdqtdm "cd $CLAS/epics/qt/QtDM/build-qtdmtest-Desktop-Debug"
alias cdhv "cd $CLAS/epics/qt/epicsqt_v1/build-hv_control-Desktop-Debug"
alias cdsmi "cd $CLAS/epics/qt/epicsqt_v1/build-smi_browse-Desktop-Debug"
alias cd0m "cd $CLAS/epics/apps/iocBoot/iocmpodCrates"
alias cdm "cd $CLAS/epics/apps/mpodCratesApp"
alias mye "O.linux-x86/ioccaen startup.all"
alias myeo "O.linux-x86/ioccaenold startup.all"