Changeset 249 for build/bhep
- Timestamp:
- Feb 15, 2007, 11:45:43 AM (17 years ago)
- Location:
- build/bhep/trunk/obuild
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
build/bhep/trunk/obuild/DOS/build_lib_bhep.bat
r127 r249 105 105 cd "%obuild_bhep_path%\%obuild_dir_bin%" 106 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_bhep_0%" 109 SET obuild_pwd_bhep_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET HDF5_home=/usr/local/HDF5/1.6.5 112 :end_if_platform_3 113 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 115 cd "%obuild_bhep_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 118 cd "%obuild_pwd_bhep_0%" 119 SET obuild_pwd_bhep_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET zlib_home=/usr 122 :end_if_platform_5 123 SET obuild_platform_result= 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 125 cd "%obuild_bhep_path%\%obuild_dir_bin%" 126 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 128 cd "%obuild_pwd_bhep_0%" 109 129 SET obuild_pwd_bhep_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 2130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 111 131 SET obuild_cxx_command=c++ 112 :end_if_platform_ 2132 :end_if_platform_6 113 133 SET obuild_platform_result= 114 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 118 138 cd "%obuild_pwd_bhep_0%" 119 139 SET obuild_pwd_bhep_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 3140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 121 141 SET obuild_cxx_command=c++ 122 :end_if_platform_ 3142 :end_if_platform_7 123 143 SET obuild_platform_result= 124 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 128 148 cd "%obuild_pwd_bhep_0%" 129 149 SET obuild_pwd_bhep_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 4150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 131 151 SET obuild_cxx_command=cxx 132 :end_if_platform_ 4152 :end_if_platform_8 133 153 SET obuild_platform_result= 134 154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 138 158 cd "%obuild_pwd_bhep_0%" 139 159 SET obuild_pwd_bhep_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 5160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 141 161 SET obuild_cxx_command=cl.exe 142 :end_if_platform_ 5162 :end_if_platform_9 143 163 SET obuild_platform_result= 144 164 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return … … 150 170 cd "%obuild_pwd_bhep_0%" 151 171 SET obuild_pwd_bhep_0= 152 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 6172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 153 173 SET obuild_cxx_optimize=-O 154 :end_if_platform_ 6174 :end_if_platform_10 155 175 SET obuild_platform_result= 156 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 160 180 cd "%obuild_pwd_bhep_0%" 161 181 SET obuild_pwd_bhep_0= 162 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 7182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 163 183 SET obuild_cxx_optimize=-O 164 :end_if_platform_ 7184 :end_if_platform_11 165 185 SET obuild_platform_result= 166 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 170 190 cd "%obuild_pwd_bhep_0%" 171 191 SET obuild_pwd_bhep_0= 172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 8192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 173 193 SET obuild_cxx_optimize=-O 174 :end_if_platform_ 8194 :end_if_platform_12 175 195 SET obuild_platform_result= 176 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 180 200 cd "%obuild_pwd_bhep_0%" 181 201 SET obuild_pwd_bhep_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 9202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 183 203 SET obuild_cxx_optimize=/O2 184 :end_if_platform_ 9204 :end_if_platform_13 185 205 SET obuild_platform_result= 186 206 … … 191 211 cd "%obuild_pwd_bhep_0%" 192 212 SET obuild_pwd_bhep_0= 193 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 0213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 194 214 SET obuild_cxx_debug=-g 195 :end_if_platform_1 0215 :end_if_platform_14 196 216 SET obuild_platform_result= 197 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 201 221 cd "%obuild_pwd_bhep_0%" 202 222 SET obuild_pwd_bhep_0= 203 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 1223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 204 224 SET obuild_cxx_debug=-g 205 :end_if_platform_1 1225 :end_if_platform_15 206 226 SET obuild_platform_result= 207 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 211 231 cd "%obuild_pwd_bhep_0%" 212 232 SET obuild_pwd_bhep_0= 213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 2233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 214 234 SET obuild_cxx_debug=-g 215 :end_if_platform_1 2235 :end_if_platform_16 216 236 SET obuild_platform_result= 217 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 221 241 cd "%obuild_pwd_bhep_0%" 222 242 SET obuild_pwd_bhep_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 3243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 224 244 SET obuild_cxx_debug=/ZI /Od 225 :end_if_platform_1 3245 :end_if_platform_17 226 246 SET obuild_platform_result= 227 247 … … 232 252 cd "%obuild_pwd_bhep_0%" 233 253 SET obuild_pwd_bhep_0= 234 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 4254 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 235 255 SET obuild_cxx_options=-fPIC 236 :end_if_platform_1 4256 :end_if_platform_18 237 257 SET obuild_platform_result= 238 258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 242 262 cd "%obuild_pwd_bhep_0%" 243 263 SET obuild_pwd_bhep_0= 244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 5264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 245 265 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 246 :end_if_platform_1 5247 SET obuild_platform_result= 248 249 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_ 16266 :end_if_platform_19 267 SET obuild_platform_result= 268 269 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_20 250 270 SET obuild_cxx_debug_local=%obuild_cxx_debug% 251 GOTO end_if_db_build_lib_bhep_sh_ 16252 :else_if_db_build_lib_bhep_sh_ 16271 GOTO end_if_db_build_lib_bhep_sh_20 272 :else_if_db_build_lib_bhep_sh_20 253 273 SET obuild_cxx_debug_local= 254 :end_if_db_build_lib_bhep_sh_ 16255 256 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_ 17274 :end_if_db_build_lib_bhep_sh_20 275 276 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_21 257 277 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 258 GOTO end_if_opt_build_lib_bhep_sh_ 17259 :else_if_opt_build_lib_bhep_sh_ 17278 GOTO end_if_opt_build_lib_bhep_sh_21 279 :else_if_opt_build_lib_bhep_sh_21 260 280 SET obuild_cxx_optimize_local= 261 :end_if_opt_build_lib_bhep_sh_17 262 263 264 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 265 cd "%obuild_bhep_path%\%obuild_dir_bin%" 266 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 267 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 268 cd "%obuild_pwd_bhep_0%" 269 SET obuild_pwd_bhep_0= 270 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 271 SET obuild_cxx_macros=%obuild_cxx_macros% /D_HDF5USEDLL_ 272 :end_if_platform_18 273 SET obuild_platform_result= 274 275 IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%" 276 IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" ( 277 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_bhep_path%\obuild\cpp\obuild_find.cpp" 1> NUL 278 IF EXIST obuild_find.obj DEL obuild_find.obj 279 ) 280 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 281 cd "%obuild_bhep_path%\%obuild_dir_bin%" 282 IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return 283 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j 284 cd "%obuild_pwd_bhep_0%" 285 SET obuild_pwd_bhep_0= 286 IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return 287 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 288 cd "%obuild_bhep_path%\%obuild_dir_bin%" 289 IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return 290 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j 291 cd "%obuild_pwd_bhep_0%" 292 SET obuild_pwd_bhep_0= 293 IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return 281 :end_if_opt_build_lib_bhep_sh_21 282 283 294 284 295 285 SET obuild_cxx_includes=/I"%obuild_bhep_path%" … … 301 291 cd "%obuild_pwd_bhep_0%" 302 292 SET obuild_pwd_bhep_0= 303 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 1293 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 304 294 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 305 :end_if_platform_21 306 SET obuild_platform_result= 307 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" 308 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_zlib_path%\include" 295 :end_if_platform_24 296 SET obuild_platform_result= 297 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 298 cd "%obuild_bhep_path%\%obuild_dir_bin%" 299 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 300 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 301 cd "%obuild_pwd_bhep_0%" 302 SET obuild_pwd_bhep_0= 303 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 304 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include 305 :end_if_platform_25 306 SET obuild_platform_result= 309 307 310 308 IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" … … 530 528 cd "%obuild_pwd_bhep_0%" 531 529 SET obuild_pwd_bhep_0= 532 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 59530 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61 533 531 SET obuild_cxx_linker_command=c++ 534 :end_if_platform_ 59532 :end_if_platform_61 535 533 SET obuild_platform_result= 536 534 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 540 538 cd "%obuild_pwd_bhep_0%" 541 539 SET obuild_pwd_bhep_0= 542 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 0540 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62 543 541 SET obuild_cxx_linker_command=c++ 544 :end_if_platform_6 0542 :end_if_platform_62 545 543 SET obuild_platform_result= 546 544 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 550 548 cd "%obuild_pwd_bhep_0%" 551 549 SET obuild_pwd_bhep_0= 552 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 1550 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63 553 551 SET obuild_cxx_linker_command=cxx 554 :end_if_platform_6 1552 :end_if_platform_63 555 553 SET obuild_platform_result= 556 554 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 560 558 cd "%obuild_pwd_bhep_0%" 561 559 SET obuild_pwd_bhep_0= 562 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 2560 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64 563 561 SET obuild_cxx_linker_command=link.exe 564 :end_if_platform_6 2562 :end_if_platform_64 565 563 SET obuild_platform_result= 566 564 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 570 568 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 571 569 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 572 cd "%obuild_pwd_bhep_0%"573 SET obuild_pwd_bhep_0=574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63575 SET obuild_cxx_linker_debug=-g576 :end_if_platform_63577 SET obuild_platform_result=578 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d579 cd "%obuild_bhep_path%\%obuild_dir_bin%"580 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return581 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j582 cd "%obuild_pwd_bhep_0%"583 SET obuild_pwd_bhep_0=584 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64585 SET obuild_cxx_linker_debug=-g586 :end_if_platform_64587 SET obuild_platform_result=588 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d589 cd "%obuild_bhep_path%\%obuild_dir_bin%"590 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return591 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j592 570 cd "%obuild_pwd_bhep_0%" 593 571 SET obuild_pwd_bhep_0= … … 599 577 cd "%obuild_bhep_path%\%obuild_dir_bin%" 600 578 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 579 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 580 cd "%obuild_pwd_bhep_0%" 581 SET obuild_pwd_bhep_0= 582 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66 583 SET obuild_cxx_linker_debug=-g 584 :end_if_platform_66 585 SET obuild_platform_result= 586 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 587 cd "%obuild_bhep_path%\%obuild_dir_bin%" 588 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 589 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 590 cd "%obuild_pwd_bhep_0%" 591 SET obuild_pwd_bhep_0= 592 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67 593 SET obuild_cxx_linker_debug=-g 594 :end_if_platform_67 595 SET obuild_platform_result= 596 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 597 cd "%obuild_bhep_path%\%obuild_dir_bin%" 598 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 601 599 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 602 600 cd "%obuild_pwd_bhep_0%" 603 601 SET obuild_pwd_bhep_0= 604 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 6602 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68 605 603 SET obuild_cxx_linker_debug=/DEBUG 606 :end_if_platform_6 6604 :end_if_platform_68 607 605 SET obuild_platform_result= 608 606 … … 613 611 cd "%obuild_pwd_bhep_0%" 614 612 SET obuild_pwd_bhep_0= 615 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 7613 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69 616 614 SET obuild_cxx_linker_options=/nologo 617 :end_if_platform_6 7618 SET obuild_platform_result= 619 620 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_ 68615 :end_if_platform_69 616 SET obuild_platform_result= 617 618 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_70 621 619 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 622 GOTO end_if_db_build_lib_bhep_sh_ 68623 :else_if_db_build_lib_bhep_sh_ 68620 GOTO end_if_db_build_lib_bhep_sh_70 621 :else_if_db_build_lib_bhep_sh_70 624 622 SET obuild_cxx_linker_debug_local= 625 :end_if_db_build_lib_bhep_sh_ 68626 627 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_ 69623 :end_if_db_build_lib_bhep_sh_70 624 625 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_71 628 626 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 629 GOTO end_if_opt_build_lib_bhep_sh_ 69630 :else_if_opt_build_lib_bhep_sh_ 69627 GOTO end_if_opt_build_lib_bhep_sh_71 628 :else_if_opt_build_lib_bhep_sh_71 631 629 SET obuild_cxx_linker_optimize_local= 632 :end_if_opt_build_lib_bhep_sh_ 69630 :end_if_opt_build_lib_bhep_sh_71 633 631 634 632 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d -
build/bhep/trunk/obuild/setup.bat
r131 r249 58 58 :end_if_platform_1 59 59 SET obuild_platform_result= 60 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 61 cd "%obuild_bhep_path%\%obuild_dir_bin%" 62 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 63 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 64 cd "%obuild_pwd_bhep_0%" 65 SET obuild_pwd_bhep_0= 66 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 67 SET HDF5_home=/usr/local/HDF5/1.6.5 68 :end_if_platform_3 69 SET obuild_platform_result= 70 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 71 cd "%obuild_bhep_path%\%obuild_dir_bin%" 72 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 73 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 74 cd "%obuild_pwd_bhep_0%" 75 SET obuild_pwd_bhep_0= 76 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 77 SET zlib_home=/usr 78 :end_if_platform_5 79 SET obuild_platform_result= 60 80 REM # Set environment variables of this package : 61 81 62 IF DEFINED PATH GOTO else_if_path_bhep_ 282 IF DEFINED PATH GOTO else_if_path_bhep_6 63 83 SET PATH=%obuild_bhep_path%\%obuild_dir_bin% 64 GOTO end_if_path_bhep_ 265 :else_if_path_bhep_ 284 GOTO end_if_path_bhep_6 85 :else_if_path_bhep_6 66 86 SET PATH=%PATH%;%obuild_bhep_path%\%obuild_dir_bin% 67 :end_if_path_bhep_ 287 :end_if_path_bhep_6 68 88 69 89 :obuild_return -
build/bhep/trunk/obuild/setup.csh
r131 r249 132 132 endif 133 133 unset obuild_platform_result 134 if ( "${obuild_platform_exe}" == "" ) then 135 echo "Variable obuild_platform_exe not defined." 136 exit 137 endif 138 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 139 if ( ${obuild_platform_result} == yes ) then 140 set HDF5_home="/usr/local/HDF5/1.6.5" 141 endif 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 zlib_home="/usr" 150 endif 151 unset obuild_platform_result 134 152 # Set environment variables of this package : 135 153 -
build/bhep/trunk/obuild/setup.sh
r131 r249 119 119 fi 120 120 unset obuild_platform_result 121 if [ "${obuild_platform_exe}" = "" ] ; then 122 echo "Variable obuild_platform_exe not defined." 123 return 124 fi 125 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 126 if [ ${obuild_platform_result} = yes ] ; then 127 HDF5_home="/usr/local/HDF5/1.6.5" 128 fi 129 unset obuild_platform_result 130 if [ "${obuild_platform_exe}" = "" ] ; then 131 echo "Variable obuild_platform_exe not defined." 132 return 133 fi 134 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 135 if [ ${obuild_platform_result} = yes ] ; then 136 zlib_home="/usr" 137 fi 138 unset obuild_platform_result 121 139 # Set environment variables of this package : 122 140 -
build/bhep/trunk/obuild/sh/build_lib_bhep
r127 r249 116 116 exit 117 117 fi 118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 119 if [ ${obuild_platform_result} = yes ] ; then 120 HDF5_home="/usr/local/HDF5/1.6.5" 121 fi 122 unset obuild_platform_result 123 if [ "${obuild_platform_exe}" = "" ] ; then 124 echo "Variable obuild_platform_exe not defined." 125 exit 126 fi 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 128 if [ ${obuild_platform_result} = yes ] ; then 129 zlib_home="/usr" 130 fi 131 unset obuild_platform_result 132 if [ "${obuild_platform_exe}" = "" ] ; then 133 echo "Variable obuild_platform_exe not defined." 134 exit 135 fi 118 136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 119 137 if [ ${obuild_platform_result} = yes ] ; then … … 258 276 fi 259 277 260 if [ "${obuild_platform_exe}" = "" ] ; then261 echo "Variable obuild_platform_exe not defined."262 exit263 fi264 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`265 if [ ${obuild_platform_result} = yes ] ; then266 obuild_cxx_macros="${obuild_cxx_macros} -D_HDF5USEDLL_"267 fi268 unset obuild_platform_result269 270 if [ ! -e "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" ] ; then271 if [ ! -e "${obuild_bhep_path}/obuild/cpp/obuild_find.cpp" ] ; then272 echo "Program source obuild_find.cpp not found."273 exit274 fi275 if [ "${obuild_cxx_command}" = "" ] ; then276 if [ "${OBUILD_CXX}" != "" ] ; then277 obuild_find_compiler=${OBUILD_CXX}278 else279 obuild_find_compiler=c++280 fi281 else282 obuild_find_compiler=${obuild_cxx_command}283 fi284 ${obuild_find_compiler} -o "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" "${obuild_bhep_path}/obuild/cpp/obuild_find.cpp"285 unset obuild_find_compiler286 if [ ! -e "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" ] ; then287 echo "Program obuild_find not found."288 exit289 fi290 fi291 obuild_find_exe="${obuild_bhep_path}/${obuild_dir_bin}/obuild_find"292 if [ "${obuild_find_exe}" = "" ] ; then293 echo "Variable obuild_find_exe not defined."294 exit295 fi296 obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`297 if [ "${obuild_HDF5_path}" = "" ] ; then298 echo "Can't find HDF5 package."299 exit300 fi301 if [ "${obuild_find_exe}" = "" ] ; then302 echo "Variable obuild_find_exe not defined."303 exit304 fi305 obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`306 if [ "${obuild_zlib_path}" = "" ] ; then307 echo "Can't find zlib package."308 exit309 fi310 278 311 279 obuild_cxx_includes="-I\"${obuild_bhep_path}\"" … … 320 288 fi 321 289 unset obuild_platform_result 322 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\"" 323 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_zlib_path}/include\"" 290 if [ "${obuild_platform_exe}" = "" ] ; then 291 echo "Variable obuild_platform_exe not defined." 292 exit 293 fi 294 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 295 if [ ${obuild_platform_result} = yes ] ; then 296 obuild_cxx_includes="${obuild_cxx_includes} -I${HDF5_home}/include" 297 fi 298 unset obuild_platform_result 324 299 325 300 if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then -
build/bhep/trunk/obuild/sh/check_foreigns
r126 r249 88 88 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 89 89 if [ ${obuild_platform_result} = yes ] ; then 90 HDF5_home="/usr/local/HDF5/1.6.5" 91 fi 92 unset obuild_platform_result 93 if [ "${obuild_platform_exe}" = "" ] ; then 94 echo "Variable obuild_platform_exe not defined." 95 exit 96 fi 97 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 98 if [ ${obuild_platform_result} = yes ] ; then 99 zlib_home="/usr" 100 fi 101 unset obuild_platform_result 102 if [ "${obuild_platform_exe}" = "" ] ; then 103 echo "Variable obuild_platform_exe not defined." 104 exit 105 fi 106 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 107 if [ ${obuild_platform_result} = yes ] ; then 90 108 if [ "${obuild_check_what}" = "CLHEP" ] ; then 91 109 if [ ! -d "${CLHEP_home}" ] ; then … … 96 114 fi 97 115 unset obuild_platform_result 116 if [ "${obuild_platform_exe}" = "" ] ; then 117 echo "Variable obuild_platform_exe not defined." 118 exit 119 fi 120 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 121 if [ ${obuild_platform_result} = yes ] ; then 122 if [ "${obuild_check_what}" = "HDF5" ] ; then 123 if [ ! -d "${HDF5_home}" ] ; then 124 echo "WARNING : HDF5 not found under ${HDF5_home}" 125 exit 1 126 fi 127 fi 128 fi 129 unset obuild_platform_result 98 130
Note: See TracChangeset
for help on using the changeset viewer.