-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathezcaidl_setup
66 lines (54 loc) · 2.02 KB
/
ezcaidl_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
#!/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
#
# required for support R3.13.X
#if ${?LD_LIBRARY_PATH} == 0 then
setenv LD_LIBRARY_PATH
#endif
set PVT_LOC = $EPICS_EXTENSIONS/bin/$EPICS_HOST_ARCH
set PVT_LIB = $EPICS_EXTENSIONS/lib/$EPICS_HOST_ARCH
# if private version exist override by them
if ${?EPICS_EXT_PVT} == 1 then
set PVT_LOC = $EPICS_EXT_PVT/bin/$EPICS_HOST_ARCH
set PVT_LIB = $EPICS_EXT_PVT/lib/$EPICS_HOST_ARCH
else if ${?EPICS_EXTENSIONS_PVT} == 1 then
set PVT_LOC = $EPICS_EXTENSIONS_PVT/bin/$EPICS_HOST_ARCH
set PVT_LIB = $EPICS_EXTENSIONS_PVT/lib/$EPICS_HOST_ARCH
endif
setenv LD_LIBRARY_PATH $PVT_LIB':'$LD_LIBRARY_PATH
# set EZCA_IDL_SHARE & IDL_STARTUP
setenv EZCA_IDL_SHARE $PVT_LIB/libezcaIDL.so
setenv IDL_STARTUP $PVT_LOC/../../idllib/ezcaidl_startup.pro
if ( ${?EPICS_EXT_PVT} | ${?EPICS_EXTENSIONS_PVT} ) then
if -e $PVT_LIB/libezcaIDL.so then
setenv EZCA_IDL_SHARE $PVT_LIB/libezcaIDL.so
endif
if -e $PVT_LOC/../../idllib/ezcaidl_startup.pro then
setenv IDL_STARTUP $PVT_LOC/../../idllib/ezcaidl_startup.pro
endif
endif
if -e libezcaIDL.so then
setenv EZCA_IDL_SHARE libezcaIDL.so
endif
if -e ezcaidl_startup.pro then
setenv IDL_STARTUP ezcaidl_startup.pro
endif
# release 5.0
# source /usr/local/rsi/idl_5.4/bin/idl_setup
setenv IDL_DEVICE X
#setenv IDL_PATH ${PVT_LOC}:${IDL_PATH}
if ${?LD_LIBRARY_PATH} == 1 then
echo LD_LIBRARY_PATH $LD_LIBRARY_PATH
endif
echo EZCA_IDL_SHARE $EZCA_IDL_SHARE
echo IDL_STARTUP $IDL_STARTUP
exit