-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_ezcaIDL
62 lines (52 loc) · 1.86 KB
/
setup_ezcaIDL
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
#!/bin/csh
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# This file is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
#
# Setet up idl environment variables for ezcaIDL
#
set HOST_ARCH = `/usr/local/epics/startup/HostArch`
setenv HOST_ARCH $HOST_ARCH
set PVT_LOC = $EPICS_EXTENSIONS/bin/$HOST_ARCH
# set EZCA_IDL_SHARE & IDL_STARTUP
setenv EZCA_IDL_SHARE $PVT_LOC/ezcaIDL.so
setenv EZCA_WAVE_SHARE $PVT_LOC/ezcaWave.so
setenv IDL_STARTUP $PVT_LOC/ezcaidl_startup.pro
# if private version exist override by them
if ${?EPICS_EXT_PVT} == 1 then
set PVT_LOC = $EPICS_EXT_PVT/bin/$HOST_ARCH
else if ${?EPICS_EXTENSIONS_PVT} == 1 then
set PVT_LOC = $EPICS_EXTENSIONS_PVT/bin/$HOST_ARCH
endif
if ( ${?EPICS_EXT_PVT} | ${?EPICS_EXTENSIONS_PVT} ) then
if -e $PVT_LOC/ezcaIDL.so then
setenv EZCA_IDL_SHARE $PVT_LOC/ezcaIDL.so
endif
if -e $PVT_LOC/ezcaWave.so then
setenv EZCA_WAVE_SHARE $PVT_LOC/ezcaWave.so
endif
if -e $PVT_LOC/ezcaidl_startup.pro then
setenv IDL_STARTUP $PVT_LOC/ezcaidl_startup.pro
endif
endif
if -e ezcaIDL.so then
setenv EZCA_IDL_SHARE ezcaIDL.so
endif
if -e ezcaWave.so then
setenv EZCA_WAVE_SHARE ezcaWave.so
endif
if -e ezcaidl_startup.pro then
setenv IDL_STARTUP ezcaidl_startup.pro
endif
# release 5.0
#source /usr/local/rsi/idl_5/bin/idl_setup
setenv IDL_DEVICE X
#echo EZCA_IDL_SHARE $EZCA_IDL_SHARE
#echo EZCA_WAVE_SHARE $EZCA_WAVE_SHARE
#echo IDL_STARTUP $IDL_STARTUP
exit