Ignore:
Timestamp:
Feb 15, 2007, 10:20:56 AM (17 years ago)
Author:
barrand
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • build/snova/trunk/obuild/setup.csh

    r186 r241  
    141141endif
    142142unset obuild_platform_result
     143if ( "${obuild_platform_exe}" == "" ) then
     144  echo "Variable obuild_platform_exe not defined."
     145  exit
     146endif
     147set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     148if ( ${obuild_platform_result} == yes ) then
     149set HDF5_home="/usr/local/HDF5/1.6.5"
     150endif
     151unset obuild_platform_result
     152if ( "${obuild_platform_exe}" == "" ) then
     153  echo "Variable obuild_platform_exe not defined."
     154  exit
     155endif
     156set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     157if ( ${obuild_platform_result} == yes ) then
     158set zlib_home="/usr"
     159endif
     160unset obuild_platform_result
    143161if ( ! -e "${obuild_snova_path}/${obuild_dir_bin}/obuild_find" ) then
    144162  if ( ! -e "${obuild_snova_path}/obuild/cpp/obuild_find.cpp" ) then
     
    172190endif
    173191set obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'`
    174 if ( "${obuild_find_exe}" == "" ) then
    175   echo "Variable obuild_find_exe not defined."
    176   exit
    177 endif
    178 set obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
    179192
    180193# Execute setup of used packages :
    181194source "${obuild_bhep_path}/obuild/setup.csh"
    182195
    183 source "${obuild_HDF5_path}/obuild/setup.csh"
    184 
    185196# Set environment variables of this package :
     197
     198if ( "${obuild_platform_exe}" == "" ) then
     199  echo "Variable obuild_platform_exe not defined."
     200  exit
     201endif
     202set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
     203if ( ${obuild_platform_result} == yes ) then
     204if ( "${obuild_platform_exe}" == "" ) then
     205  echo "Variable obuild_platform_exe not defined."
     206  exit
     207endif
     208set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     209if ( ${obuild_platform_result} == yes ) then
     210  if (  $?DYLD_LIBRARY_PATH ) then
     211    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${HDF5_home}/lib"
     212  else
     213    setenv DYLD_LIBRARY_PATH "${HDF5_home}/lib"
     214  endif
     215endif
     216unset obuild_platform_result
     217else
     218if ( "${obuild_platform_exe}" == "" ) then
     219  echo "Variable obuild_platform_exe not defined."
     220  exit
     221endif
     222set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     223if ( ${obuild_platform_result} == yes ) then
     224  if (  $?LD_LIBRARY_PATH ) then
     225    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${HDF5_home}/lib"
     226  else
     227    setenv LD_LIBRARY_PATH "${HDF5_home}/lib"
     228  endif
     229endif
     230unset obuild_platform_result
     231endif
     232unset obuild_platform_result
    186233
    187234if ( "${obuild_platform_exe}" == "" ) then
     
    277324unset obuild_platform_result
    278325
     326if (  $?PATH ) then
     327  setenv PATH "${PATH}:${obuild_snova_path}/${obuild_dir_bin}"
     328else
     329  setenv PATH "${obuild_snova_path}/${obuild_dir_bin}"
     330endif
     331
    279332unset obuild_snova_path
    280333
Note: See TracChangeset for help on using the changeset viewer.