Changeset 241 for build/snova/trunk/obuild/setup.csh
- Timestamp:
- Feb 15, 2007, 10:20:56 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
build/snova/trunk/obuild/setup.csh
r186 r241 141 141 endif 142 142 unset obuild_platform_result 143 if ( "${obuild_platform_exe}" == "" ) then 144 echo "Variable obuild_platform_exe not defined." 145 exit 146 endif 147 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 148 if ( ${obuild_platform_result} == yes ) then 149 set HDF5_home="/usr/local/HDF5/1.6.5" 150 endif 151 unset obuild_platform_result 152 if ( "${obuild_platform_exe}" == "" ) then 153 echo "Variable obuild_platform_exe not defined." 154 exit 155 endif 156 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 157 if ( ${obuild_platform_result} == yes ) then 158 set zlib_home="/usr" 159 endif 160 unset obuild_platform_result 143 161 if ( ! -e "${obuild_snova_path}/${obuild_dir_bin}/obuild_find" ) then 144 162 if ( ! -e "${obuild_snova_path}/obuild/cpp/obuild_find.cpp" ) then … … 172 190 endif 173 191 set obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'` 174 if ( "${obuild_find_exe}" == "" ) then175 echo "Variable obuild_find_exe not defined."176 exit177 endif178 set obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`179 192 180 193 # Execute setup of used packages : 181 194 source "${obuild_bhep_path}/obuild/setup.csh" 182 195 183 source "${obuild_HDF5_path}/obuild/setup.csh"184 185 196 # Set environment variables of this package : 197 198 if ( "${obuild_platform_exe}" == "" ) then 199 echo "Variable obuild_platform_exe not defined." 200 exit 201 endif 202 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 203 if ( ${obuild_platform_result} == yes ) then 204 if ( "${obuild_platform_exe}" == "" ) then 205 echo "Variable obuild_platform_exe not defined." 206 exit 207 endif 208 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 209 if ( ${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 215 endif 216 unset obuild_platform_result 217 else 218 if ( "${obuild_platform_exe}" == "" ) then 219 echo "Variable obuild_platform_exe not defined." 220 exit 221 endif 222 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 223 if ( ${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 229 endif 230 unset obuild_platform_result 231 endif 232 unset obuild_platform_result 186 233 187 234 if ( "${obuild_platform_exe}" == "" ) then … … 277 324 unset obuild_platform_result 278 325 326 if ( $?PATH ) then 327 setenv PATH "${PATH}:${obuild_snova_path}/${obuild_dir_bin}" 328 else 329 setenv PATH "${obuild_snova_path}/${obuild_dir_bin}" 330 endif 331 279 332 unset obuild_snova_path 280 333
Note: See TracChangeset
for help on using the changeset viewer.