| [271] | 1 | #
|
|---|
| 2 | # Usage :
|
|---|
| 3 | # csh> source setup.csh
|
|---|
| 4 | #
|
|---|
| 5 |
|
|---|
| 6 | #set verbose
|
|---|
| 7 |
|
|---|
| 8 | set OSC_home="@@absolute_dir@@"
|
|---|
| 9 |
|
|---|
| 10 | if ( "${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
|
|---|
| 25 | endif
|
|---|
| 26 |
|
|---|
| 27 | # The "." is for the OpenPAW on-the-fly compilation and loading.
|
|---|
| 28 | if ( `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
|
|---|
| 40 | endif
|
|---|
| 41 |
|
|---|
| 42 | if ( `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
|
|---|
| 54 | endif
|
|---|
| 55 |
|
|---|
| 56 | set bin_path="${OSC_home}/bin"
|
|---|
| 57 | set bin_curr=`printenv PATH`
|
|---|
| 58 | if ( "${bin_curr}" == "" ) then
|
|---|
| 59 | setenv PATH "${bin_path}"
|
|---|
| 60 | else
|
|---|
| 61 | if ( `echo "${bin_curr}" | grep "${bin_path}" ` == "" ) then
|
|---|
| 62 | setenv PATH "${PATH}:${bin_path}"
|
|---|
| 63 | endif
|
|---|
| 64 | endif
|
|---|
| 65 | unset bin_curr
|
|---|
| 66 | unset bin_path
|
|---|
| 67 |
|
|---|
| 68 | # AIDA :
|
|---|
| 69 | setenv AIDA_HOME_DIR "${OSC_home}"
|
|---|
| 70 |
|
|---|
| 71 | # else :
|
|---|
| 72 | setenv COIN_DONT_INFORM_INDIRECT_RENDERING "1"
|
|---|
| 73 |
|
|---|
| 74 | unset OSC_home
|
|---|