source: osc_snovis/trunk/obuild/release/setup.csh@ 272

Last change on this file since 272 was 271, checked in by barrand, 19 years ago
File size: 1.8 KB
Line 
1#
2# Usage :
3# csh> source setup.csh
4#
5
6#set verbose
7
8set OSC_home="@@absolute_dir@@"
9
10if ( "${OSC_home}" == '@@absolute_dir@@' ) then
11 echo ' The OpenScientist setup scripts had not been installed.'
12 echo ''
13 echo ' In the file :'
14 echo ' OpenScientist/<vers>/obuild/setup.csh'
15 echo ' someone has to replace '
16 echo ' @@absolute_dir@@'
17 echo ' by the absolute path of the package.'
18 echo ''
19 echo ' If having the write access, this replacement can be done'
20 echo ' on the setup scripts by using the install script :'
21 echo ' cd <install_path>/OpenScientist/<vers>'
22 echo ' ./install'
23 echo ''
24 exit
25endif
26
27# The "." is for the OpenPAW on-the-fly compilation and loading.
28if ( `uname` == "Linux" ) then
29 set lib_path="${OSC_home}/lib:${OSC_home}/bin:."
30 set lib_curr=`printenv LD_LIBRARY_PATH`
31 if ( "${lib_curr}" == "" ) then
32 setenv LD_LIBRARY_PATH "${lib_path}"
33 else
34 if ( `echo "${lib_curr}" | grep "${lib_path}" ` == "" ) then
35 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${lib_path}"
36 endif
37 endif
38 unset lib_curr
39 unset lib_path
40endif
41
42if ( `uname` == "Darwin" ) then
43 set lib_path="${OSC_home}/lib:${OSC_home}/bin:."
44 set lib_curr=`printenv DYLD_LIBRARY_PATH`
45 if ( "${lib_curr}" == "" ) then
46 setenv DYLD_LIBRARY_PATH "${lib_path}"
47 else
48 if ( `echo "${lib_curr}" | grep "${lib_path}" ` == "" ) then
49 setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${lib_path}"
50 endif
51 endif
52 unset lib_curr
53 unset lib_path
54endif
55
56set bin_path="${OSC_home}/bin"
57set bin_curr=`printenv PATH`
58if ( "${bin_curr}" == "" ) then
59 setenv PATH "${bin_path}"
60else
61 if ( `echo "${bin_curr}" | grep "${bin_path}" ` == "" ) then
62 setenv PATH "${PATH}:${bin_path}"
63 endif
64endif
65unset bin_curr
66unset bin_path
67
68# AIDA :
69setenv AIDA_HOME_DIR "${OSC_home}"
70
71# else :
72setenv COIN_DONT_INFORM_INDIRECT_RENDERING "1"
73
74unset OSC_home
Note: See TracBrowser for help on using the repository browser.