1 | @ECHO OFF |
---|
2 | SETLOCAL |
---|
3 | |
---|
4 | REM # |
---|
5 | REM # File produced by the obuild tool version 1.0 |
---|
6 | REM # for the package osc_snovis with version v1r0. |
---|
7 | REM # |
---|
8 | |
---|
9 | REM #//////////////////////////////////////////////// |
---|
10 | REM # Usage : |
---|
11 | REM # DOS> CD some_path\project\version\obuild |
---|
12 | REM # DOS> DOS\build_release |
---|
13 | REM # or : |
---|
14 | REM # DOS> call DOS\build_release.bat |
---|
15 | REM # |
---|
16 | REM #//////////////////////////////////////////////// |
---|
17 | |
---|
18 | REM #//////////////////////////////////////////////// |
---|
19 | REM #/// Get path of this file : |
---|
20 | REM #//////////////////////////////////////////////// |
---|
21 | SET obuild_osc_snovis_path=%~dp0 |
---|
22 | REM # Remove ending \obuild\DOS\ |
---|
23 | SET obuild_osc_snovis_path=%obuild_osc_snovis_path:~0,-12% |
---|
24 | |
---|
25 | SET obuild_verbose=no |
---|
26 | SET obuild_set_x=no |
---|
27 | SET obuild_erase_dir_bin=no |
---|
28 | |
---|
29 | REM #//////////////////////////////////////////////// |
---|
30 | REM #/// Treat arguments : |
---|
31 | REM #//////////////////////////////////////////////// |
---|
32 | |
---|
33 | :next_arg |
---|
34 | IF "%1%" == "" GOTO end_args |
---|
35 | |
---|
36 | IF NOT "%1%" == "-h" GOTO end_if_h |
---|
37 | ECHO Usage : |
---|
38 | ECHO DOS\run [Options] |
---|
39 | ECHO Options : |
---|
40 | ECHO -v : verbose. |
---|
41 | ECHO -x : execute with ECHO ON" |
---|
42 | ECHO -e : erase binary directory. |
---|
43 | GOTO obuild_return |
---|
44 | :end_if_h |
---|
45 | |
---|
46 | IF NOT "%1%" == "-v" GOTO end_if_v |
---|
47 | SET obuild_verbose=yes |
---|
48 | SHIFT |
---|
49 | GOTO next_arg |
---|
50 | :end_if_v |
---|
51 | |
---|
52 | IF NOT "%1%" == "-x" GOTO end_if_x |
---|
53 | SET obuild_set_x=yes |
---|
54 | SHIFT |
---|
55 | GOTO next_arg |
---|
56 | :end_if_x |
---|
57 | |
---|
58 | IF NOT "%1%" == "-e" GOTO end_if_e |
---|
59 | SET obuild_erase_dir_bin=yes |
---|
60 | SHIFT |
---|
61 | GOTO next_arg |
---|
62 | :end_if_e |
---|
63 | |
---|
64 | :end_args |
---|
65 | |
---|
66 | REM #//////////////////////////////////////////////// |
---|
67 | REM #/// End arguments. |
---|
68 | REM #//////////////////////////////////////////////// |
---|
69 | |
---|
70 | IF %obuild_set_x% == yes ECHO ON |
---|
71 | |
---|
72 | IF "%OBUILD_PLATFORM%" == "" ( |
---|
73 | IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return |
---|
74 | SET obuild_platform=%OS% |
---|
75 | ) ELSE ( |
---|
76 | SET obuild_platform=%OBUILD_PLATFORM% |
---|
77 | ) |
---|
78 | |
---|
79 | IF "%obuild_platform%" == "" ( |
---|
80 | ECHO obuild_platform variable not defined. |
---|
81 | GOTO obuild_return |
---|
82 | ) |
---|
83 | |
---|
84 | IF "%OBUILD_DIR_BIN%" == "" ( |
---|
85 | SET obuild_dir_bin=%obuild_platform%_obuild |
---|
86 | ) ELSE ( |
---|
87 | SET obuild_dir_bin=%OBUILD_DIR_BIN% |
---|
88 | ) |
---|
89 | |
---|
90 | IF "%obuild_dir_bin%" == "" ( |
---|
91 | ECHO obuild_dir_bin variable not defined. |
---|
92 | GOTO obuild_return |
---|
93 | ) |
---|
94 | |
---|
95 | IF "%obuild_erase_dir_bin%" == "yes" ( |
---|
96 | IF EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%" RMDIR /S /Q "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
97 | GOTO obuild_return |
---|
98 | ) |
---|
99 | |
---|
100 | IF NOT EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
101 | |
---|
102 | IF NOT EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
103 | IF NOT EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" ( |
---|
104 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_osc_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_osc_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL |
---|
105 | IF EXIST obuild_platform.obj DEL obuild_platform.obj |
---|
106 | ) |
---|
107 | |
---|
108 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_0=%%d |
---|
109 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
110 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
111 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
112 | cd "%obuild_pwd_osc_snovis_0%" |
---|
113 | SET obuild_pwd_osc_snovis_0= |
---|
114 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 |
---|
115 | SET OSC_home=/usr/local/OpenScientist/v16r0 |
---|
116 | :end_if_platform_1 |
---|
117 | SET obuild_platform_result= |
---|
118 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_0=%%d |
---|
119 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
120 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
121 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
122 | cd "%obuild_pwd_osc_snovis_0%" |
---|
123 | SET obuild_pwd_osc_snovis_0= |
---|
124 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 |
---|
125 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
126 | :end_if_platform_3 |
---|
127 | SET obuild_platform_result= |
---|
128 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_0=%%d |
---|
129 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
130 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
131 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
132 | cd "%obuild_pwd_osc_snovis_0%" |
---|
133 | SET obuild_pwd_osc_snovis_0= |
---|
134 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
135 | SET Geant4_home=/usr/local/geant4/8.2 |
---|
136 | :end_if_platform_5 |
---|
137 | SET obuild_platform_result= |
---|
138 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_0=%%d |
---|
139 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
140 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
141 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
142 | cd "%obuild_pwd_osc_snovis_0%" |
---|
143 | SET obuild_pwd_osc_snovis_0= |
---|
144 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
145 | SET HDF5_home=/usr/local/HDF5/1.6.5 |
---|
146 | :end_if_platform_7 |
---|
147 | SET obuild_platform_result= |
---|
148 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_0=%%d |
---|
149 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
150 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
151 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
152 | cd "%obuild_pwd_osc_snovis_0%" |
---|
153 | SET obuild_pwd_osc_snovis_0= |
---|
154 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
155 | SET zlib_home=/usr |
---|
156 | :end_if_platform_9 |
---|
157 | SET obuild_platform_result= |
---|
158 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_0=%%d |
---|
159 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
160 | IF EXIST osc_snovis RMDIR /S /Q osc_snovis |
---|
161 | IF NOT EXIST osc_snovis MKDIR osc_snovis |
---|
162 | cd osc_snovis |
---|
163 | IF NOT EXIST v1r0 MKDIR v1r0 |
---|
164 | cd v1r0 |
---|
165 | IF NOT EXIST lib MKDIR lib |
---|
166 | IF NOT EXIST bin MKDIR bin |
---|
167 | IF NOT EXIST Resources MKDIR Resources |
---|
168 | IF NOT EXIST tools MKDIR tools |
---|
169 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_dir_project=%%d |
---|
170 | |
---|
171 | IF EXIST "%obuild_dir_project%\Versions" DEL "%obuild_dir_project%\Versions" |
---|
172 | ECHO package osc_snovis v1r0 >> "%obuild_dir_project%\Versions" |
---|
173 | ECHO package snovis v1r1 >> "%obuild_dir_project%\Versions" |
---|
174 | ECHO package bhep v1r4p2 >> "%obuild_dir_project%\Versions" |
---|
175 | ECHO package snova v2r0p0 >> "%obuild_dir_project%\Versions" |
---|
176 | ECHO package snovis v1r1 >> "%obuild_dir_project%\Versions" |
---|
177 | ECHO foreign OpenScientist v16r0 >> "%obuild_dir_project%\Versions" |
---|
178 | ECHO foreign CLHEP 2.0.3.1 >> "%obuild_dir_project%\Versions" |
---|
179 | ECHO foreign Geant4 8.2 >> "%obuild_dir_project%\Versions" |
---|
180 | ECHO foreign HDF5 1.6.5 >> "%obuild_dir_project%\Versions" |
---|
181 | |
---|
182 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
183 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
184 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
185 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
186 | cd "%obuild_pwd_osc_snovis_1%" |
---|
187 | SET obuild_pwd_osc_snovis_1= |
---|
188 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
189 | IF NOT EXIST "%OSC_home%\bin" ECHO WARNNING : Directory %OSC_home%\bin not found. && GOTO end_if_release_15 |
---|
190 | IF NOT EXIST "%obuild_dir_project%\.\.\bin" MKDIR "%obuild_dir_project%\.\.\bin" |
---|
191 | XCOPY /E /Q "%OSC_home%\bin" "%obuild_dir_project%\.\.\bin" 1> xcopy_exe_error |
---|
192 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
193 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
194 | :end_if_release_15 |
---|
195 | :end_if_platform_14 |
---|
196 | SET obuild_platform_result= |
---|
197 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
198 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
199 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
200 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
201 | cd "%obuild_pwd_osc_snovis_1%" |
---|
202 | SET obuild_pwd_osc_snovis_1= |
---|
203 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 |
---|
204 | IF NOT EXIST "%OSC_home%\lib" ECHO WARNNING : Directory %OSC_home%\lib not found. && GOTO end_if_release_17 |
---|
205 | IF NOT EXIST "%obuild_dir_project%\.\.\lib" MKDIR "%obuild_dir_project%\.\.\lib" |
---|
206 | XCOPY /E /Q "%OSC_home%\lib" "%obuild_dir_project%\.\.\lib" 1> xcopy_exe_error |
---|
207 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
208 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
209 | :end_if_release_17 |
---|
210 | :end_if_platform_16 |
---|
211 | SET obuild_platform_result= |
---|
212 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
213 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
214 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
215 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
216 | cd "%obuild_pwd_osc_snovis_1%" |
---|
217 | SET obuild_pwd_osc_snovis_1= |
---|
218 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
219 | IF NOT EXIST "%OSC_home%\Resources" ECHO WARNNING : Directory %OSC_home%\Resources not found. && GOTO end_if_release_19 |
---|
220 | IF NOT EXIST "%obuild_dir_project%\.\.\Resources" MKDIR "%obuild_dir_project%\.\.\Resources" |
---|
221 | XCOPY /E /Q "%OSC_home%\Resources" "%obuild_dir_project%\.\.\Resources" 1> xcopy_exe_error |
---|
222 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
223 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
224 | :end_if_release_19 |
---|
225 | :end_if_platform_18 |
---|
226 | SET obuild_platform_result= |
---|
227 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
228 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
229 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
230 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
231 | cd "%obuild_pwd_osc_snovis_1%" |
---|
232 | SET obuild_pwd_osc_snovis_1= |
---|
233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 |
---|
234 | IF NOT EXIST "%CLHEP_home%\lib\libCLHEP-2.0.3.1.dylib" ECHO WARNNING : File %CLHEP_home%\lib\libCLHEP-2.0.3.1.dylib not found. && GOTO end_if_release_21 |
---|
235 | IF NOT EXIST "%obuild_dir_project%\lib" MKDIR "%obuild_dir_project%\lib" |
---|
236 | COPY "%CLHEP_home%\lib\libCLHEP-2.0.3.1.dylib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
237 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
238 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
239 | :end_if_release_21 |
---|
240 | :end_if_platform_20 |
---|
241 | SET obuild_platform_result= |
---|
242 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
243 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
244 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
245 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
246 | cd "%obuild_pwd_osc_snovis_1%" |
---|
247 | SET obuild_pwd_osc_snovis_1= |
---|
248 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 |
---|
249 | IF NOT EXIST "%CLHEP_home%\lib\libCLHEP-2.0.3.1.so" ECHO WARNNING : File %CLHEP_home%\lib\libCLHEP-2.0.3.1.so not found. && GOTO end_if_release_23 |
---|
250 | IF NOT EXIST "%obuild_dir_project%\lib" MKDIR "%obuild_dir_project%\lib" |
---|
251 | COPY "%CLHEP_home%\lib\libCLHEP-2.0.3.1.so" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
252 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
253 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
254 | :end_if_release_23 |
---|
255 | :end_if_platform_22 |
---|
256 | SET obuild_platform_result= |
---|
257 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
258 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
259 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
260 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
261 | cd "%obuild_pwd_osc_snovis_1%" |
---|
262 | SET obuild_pwd_osc_snovis_1= |
---|
263 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 |
---|
264 | IF NOT EXIST "%CLHEP_home%\include" ECHO WARNNING : Directory %CLHEP_home%\include not found. && GOTO end_if_release_25 |
---|
265 | IF NOT EXIST "%obuild_dir_project%\Resources\CLHEP\.\include" MKDIR "%obuild_dir_project%\Resources\CLHEP\.\include" |
---|
266 | XCOPY /E /Q "%CLHEP_home%\include" "%obuild_dir_project%\Resources\CLHEP\.\include" 1> xcopy_exe_error |
---|
267 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
268 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
269 | :end_if_release_25 |
---|
270 | :end_if_platform_24 |
---|
271 | SET obuild_platform_result= |
---|
272 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
273 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
274 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
275 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
276 | cd "%obuild_pwd_osc_snovis_1%" |
---|
277 | SET obuild_pwd_osc_snovis_1= |
---|
278 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 |
---|
279 | IF NOT EXIST "%Geant4_home%\include" ECHO WARNNING : Directory %Geant4_home%\include not found. && GOTO end_if_release_27 |
---|
280 | IF NOT EXIST "%obuild_dir_project%\Resources\Geant4\.\include" MKDIR "%obuild_dir_project%\Resources\Geant4\.\include" |
---|
281 | XCOPY /E /Q "%Geant4_home%\include" "%obuild_dir_project%\Resources\Geant4\.\include" 1> xcopy_exe_error |
---|
282 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
283 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
284 | :end_if_release_27 |
---|
285 | :end_if_platform_26 |
---|
286 | SET obuild_platform_result= |
---|
287 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
288 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
289 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
290 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
291 | cd "%obuild_pwd_osc_snovis_1%" |
---|
292 | SET obuild_pwd_osc_snovis_1= |
---|
293 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28 |
---|
294 | IF NOT EXIST "%Geant4_home%\data\G4NDL" ECHO WARNNING : Directory %Geant4_home%\data\G4NDL not found. && GOTO end_if_release_29 |
---|
295 | IF NOT EXIST "%obuild_dir_project%\Resources\Geant4\data\.\G4NDL" MKDIR "%obuild_dir_project%\Resources\Geant4\data\.\G4NDL" |
---|
296 | XCOPY /E /Q "%Geant4_home%\data\G4NDL" "%obuild_dir_project%\Resources\Geant4\data\.\G4NDL" 1> xcopy_exe_error |
---|
297 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
298 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
299 | :end_if_release_29 |
---|
300 | :end_if_platform_28 |
---|
301 | SET obuild_platform_result= |
---|
302 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
303 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
304 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
305 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
306 | cd "%obuild_pwd_osc_snovis_1%" |
---|
307 | SET obuild_pwd_osc_snovis_1= |
---|
308 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 |
---|
309 | IF NOT EXIST "%Geant4_home%\data\PhotonEvaporation" ECHO WARNNING : Directory %Geant4_home%\data\PhotonEvaporation not found. && GOTO end_if_release_31 |
---|
310 | IF NOT EXIST "%obuild_dir_project%\Resources\Geant4\data\.\PhotonEvaporation" MKDIR "%obuild_dir_project%\Resources\Geant4\data\.\PhotonEvaporation" |
---|
311 | XCOPY /E /Q "%Geant4_home%\data\PhotonEvaporation" "%obuild_dir_project%\Resources\Geant4\data\.\PhotonEvaporation" 1> xcopy_exe_error |
---|
312 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
313 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
314 | :end_if_release_31 |
---|
315 | :end_if_platform_30 |
---|
316 | SET obuild_platform_result= |
---|
317 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
318 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
319 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
320 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
321 | cd "%obuild_pwd_osc_snovis_1%" |
---|
322 | SET obuild_pwd_osc_snovis_1= |
---|
323 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 |
---|
324 | IF NOT EXIST "%Geant4_home%\data\RadioactiveDecay" ECHO WARNNING : Directory %Geant4_home%\data\RadioactiveDecay not found. && GOTO end_if_release_33 |
---|
325 | IF NOT EXIST "%obuild_dir_project%\Resources\Geant4\data\.\RadioactiveDecay" MKDIR "%obuild_dir_project%\Resources\Geant4\data\.\RadioactiveDecay" |
---|
326 | XCOPY /E /Q "%Geant4_home%\data\RadioactiveDecay" "%obuild_dir_project%\Resources\Geant4\data\.\RadioactiveDecay" 1> xcopy_exe_error |
---|
327 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
328 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
329 | :end_if_release_33 |
---|
330 | :end_if_platform_32 |
---|
331 | SET obuild_platform_result= |
---|
332 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
333 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
334 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
335 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
336 | cd "%obuild_pwd_osc_snovis_1%" |
---|
337 | SET obuild_pwd_osc_snovis_1= |
---|
338 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34 |
---|
339 | IF NOT EXIST "%Geant4_home%\data\G4EMLOW" ECHO WARNNING : Directory %Geant4_home%\data\G4EMLOW not found. && GOTO end_if_release_35 |
---|
340 | IF NOT EXIST "%obuild_dir_project%\Resources\Geant4\data\.\G4EMLOW" MKDIR "%obuild_dir_project%\Resources\Geant4\data\.\G4EMLOW" |
---|
341 | XCOPY /E /Q "%Geant4_home%\data\G4EMLOW" "%obuild_dir_project%\Resources\Geant4\data\.\G4EMLOW" 1> xcopy_exe_error |
---|
342 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
343 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
344 | :end_if_release_35 |
---|
345 | :end_if_platform_34 |
---|
346 | SET obuild_platform_result= |
---|
347 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
348 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
349 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
350 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
351 | cd "%obuild_pwd_osc_snovis_1%" |
---|
352 | SET obuild_pwd_osc_snovis_1= |
---|
353 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 |
---|
354 | IF NOT EXIST "%Geant4_home%\lib" ECHO WARNNING : Directory %Geant4_home%\lib not found. && GOTO end_if_release_37 |
---|
355 | IF NOT EXIST "%obuild_dir_project%\lib/." MKDIR "%obuild_dir_project%\lib/." |
---|
356 | XCOPY /E /Q "%Geant4_home%\lib"\libG4physicslists.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
357 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
358 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
359 | XCOPY /E /Q "%Geant4_home%\lib"\libG4readout.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
360 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
361 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
362 | XCOPY /E /Q "%Geant4_home%\lib"\libG4run.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
363 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
364 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
365 | XCOPY /E /Q "%Geant4_home%\lib"\libG4event.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
366 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
367 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
368 | XCOPY /E /Q "%Geant4_home%\lib"\libG4tracking.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
369 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
370 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
371 | XCOPY /E /Q "%Geant4_home%\lib"\libG4processes.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
372 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
373 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
374 | XCOPY /E /Q "%Geant4_home%\lib"\libG4digits_hits.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
375 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
376 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
377 | XCOPY /E /Q "%Geant4_home%\lib"\libG4track.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
378 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
379 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
380 | XCOPY /E /Q "%Geant4_home%\lib"\libG4particles.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
381 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
382 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
383 | XCOPY /E /Q "%Geant4_home%\lib"\libG4geometry.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
384 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
385 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
386 | XCOPY /E /Q "%Geant4_home%\lib"\libG4graphics_reps.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
387 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
388 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
389 | XCOPY /E /Q "%Geant4_home%\lib"\libG4materials.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
390 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
391 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
392 | XCOPY /E /Q "%Geant4_home%\lib"\libG4intercoms.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
393 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
394 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
395 | XCOPY /E /Q "%Geant4_home%\lib"\libG4global.dylib "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
396 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
397 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
398 | :end_if_release_37 |
---|
399 | :end_if_platform_36 |
---|
400 | SET obuild_platform_result= |
---|
401 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
402 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
403 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
404 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
405 | cd "%obuild_pwd_osc_snovis_1%" |
---|
406 | SET obuild_pwd_osc_snovis_1= |
---|
407 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 |
---|
408 | IF NOT EXIST "%Geant4_home%\lib" ECHO WARNNING : Directory %Geant4_home%\lib not found. && GOTO end_if_release_39 |
---|
409 | IF NOT EXIST "%obuild_dir_project%\lib/." MKDIR "%obuild_dir_project%\lib/." |
---|
410 | XCOPY /E /Q "%Geant4_home%\lib"\libG4physicslists.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
411 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
412 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
413 | XCOPY /E /Q "%Geant4_home%\lib"\libG4readout.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
414 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
415 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
416 | XCOPY /E /Q "%Geant4_home%\lib"\libG4run.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
417 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
418 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
419 | XCOPY /E /Q "%Geant4_home%\lib"\libG4event.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
420 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
421 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
422 | XCOPY /E /Q "%Geant4_home%\lib"\libG4tracking.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
423 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
424 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
425 | XCOPY /E /Q "%Geant4_home%\lib"\libG4processes.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
426 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
427 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
428 | XCOPY /E /Q "%Geant4_home%\lib"\libG4digits_hits.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
429 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
430 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
431 | XCOPY /E /Q "%Geant4_home%\lib"\libG4track.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
432 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
433 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
434 | XCOPY /E /Q "%Geant4_home%\lib"\libG4particles.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
435 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
436 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
437 | XCOPY /E /Q "%Geant4_home%\lib"\libG4geometry.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
438 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
439 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
440 | XCOPY /E /Q "%Geant4_home%\lib"\libG4graphics_reps.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
441 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
442 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
443 | XCOPY /E /Q "%Geant4_home%\lib"\libG4materials.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
444 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
445 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
446 | XCOPY /E /Q "%Geant4_home%\lib"\libG4intercoms.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
447 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
448 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
449 | XCOPY /E /Q "%Geant4_home%\lib"\libG4global.so "%obuild_dir_project%\lib/." 1> xcopy_exe_error |
---|
450 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
451 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
452 | :end_if_release_39 |
---|
453 | :end_if_platform_38 |
---|
454 | SET obuild_platform_result= |
---|
455 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
456 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
457 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
458 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
459 | cd "%obuild_pwd_osc_snovis_1%" |
---|
460 | SET obuild_pwd_osc_snovis_1= |
---|
461 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 |
---|
462 | IF NOT EXIST "%HDF5_home%\lib\libhdf5.0.0.0.dylib" ECHO WARNNING : File %HDF5_home%\lib\libhdf5.0.0.0.dylib not found. && GOTO end_if_release_41 |
---|
463 | IF NOT EXIST "%obuild_dir_project%\lib" MKDIR "%obuild_dir_project%\lib" |
---|
464 | COPY "%HDF5_home%\lib\libhdf5.0.0.0.dylib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
465 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
466 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
467 | :end_if_release_41 |
---|
468 | :end_if_platform_40 |
---|
469 | SET obuild_platform_result= |
---|
470 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
471 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
472 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
473 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
474 | cd "%obuild_pwd_osc_snovis_1%" |
---|
475 | SET obuild_pwd_osc_snovis_1= |
---|
476 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 |
---|
477 | IF NOT EXIST "%HDF5_home%\include" ECHO WARNNING : Directory %HDF5_home%\include not found. && GOTO end_if_release_43 |
---|
478 | IF NOT EXIST "%obuild_dir_project%\Resources\HDF5\.\include" MKDIR "%obuild_dir_project%\Resources\HDF5\.\include" |
---|
479 | XCOPY /E /Q "%HDF5_home%\include" "%obuild_dir_project%\Resources\HDF5\.\include" 1> xcopy_exe_error |
---|
480 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
481 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
482 | :end_if_release_43 |
---|
483 | :end_if_platform_42 |
---|
484 | SET obuild_platform_result= |
---|
485 | |
---|
486 | IF NOT EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
487 | IF NOT EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
488 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_osc_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_osc_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL |
---|
489 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
490 | ) |
---|
491 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
492 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
493 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
494 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
495 | cd "%obuild_pwd_osc_snovis_1%" |
---|
496 | SET obuild_pwd_osc_snovis_1= |
---|
497 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
498 | |
---|
499 | IF NOT EXIST "%obuild_snovis_path%\scripts" ECHO WARNNING : Directory %obuild_snovis_path%\scripts not found. && GOTO end_if_release_44 |
---|
500 | IF NOT EXIST "%obuild_dir_project%\Resources\snovis\.\scripts" MKDIR "%obuild_dir_project%\Resources\snovis\.\scripts" |
---|
501 | XCOPY /E /Q "%obuild_snovis_path%\scripts" "%obuild_dir_project%\Resources\snovis\.\scripts" 1> xcopy_exe_error |
---|
502 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
503 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
504 | :end_if_release_44 |
---|
505 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
506 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
507 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
508 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
509 | cd "%obuild_pwd_osc_snovis_1%" |
---|
510 | SET obuild_pwd_osc_snovis_1= |
---|
511 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 |
---|
512 | IF NOT EXIST "%obuild_snovis_path%\Darwin_obuild\snovis_session.app" ECHO WARNNING : Directory %obuild_snovis_path%\Darwin_obuild\snovis_session.app not found. && GOTO end_if_release_46 |
---|
513 | IF NOT EXIST "%obuild_dir_project%\..\..\.\snovis_session.app" MKDIR "%obuild_dir_project%\..\..\.\snovis_session.app" |
---|
514 | XCOPY /E /Q "%obuild_snovis_path%\Darwin_obuild\snovis_session.app" "%obuild_dir_project%\..\..\.\snovis_session.app" 1> xcopy_exe_error |
---|
515 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
516 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
517 | :end_if_release_46 |
---|
518 | :end_if_platform_47 |
---|
519 | SET obuild_platform_result= |
---|
520 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
521 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
522 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
523 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
524 | cd "%obuild_pwd_osc_snovis_1%" |
---|
525 | SET obuild_pwd_osc_snovis_1= |
---|
526 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
527 | |
---|
528 | IF NOT EXIST "%obuild_snovis_path%\scripts" ECHO WARNNING : Directory %obuild_snovis_path%\scripts not found. && GOTO end_if_release_48 |
---|
529 | IF NOT EXIST "%obuild_dir_project%\Resources\snovis\.\scripts" MKDIR "%obuild_dir_project%\Resources\snovis\.\scripts" |
---|
530 | XCOPY /E /Q "%obuild_snovis_path%\scripts" "%obuild_dir_project%\Resources\snovis\.\scripts" 1> xcopy_exe_error |
---|
531 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
532 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
533 | :end_if_release_48 |
---|
534 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
535 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
536 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
537 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
538 | cd "%obuild_pwd_osc_snovis_1%" |
---|
539 | SET obuild_pwd_osc_snovis_1= |
---|
540 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51 |
---|
541 | IF NOT EXIST "%obuild_snovis_path%\Darwin_obuild\snovis_session.app" ECHO WARNNING : Directory %obuild_snovis_path%\Darwin_obuild\snovis_session.app not found. && GOTO end_if_release_50 |
---|
542 | IF NOT EXIST "%obuild_dir_project%\..\..\.\snovis_session.app" MKDIR "%obuild_dir_project%\..\..\.\snovis_session.app" |
---|
543 | XCOPY /E /Q "%obuild_snovis_path%\Darwin_obuild\snovis_session.app" "%obuild_dir_project%\..\..\.\snovis_session.app" 1> xcopy_exe_error |
---|
544 | @IF ERRORLEVEL 1 @TYPE xcopy_exe_error && @GOTO obuild_return |
---|
545 | @IF NOT ERRORLEVEL 1 @DEL xcopy_exe_error |
---|
546 | :end_if_release_50 |
---|
547 | :end_if_platform_51 |
---|
548 | SET obuild_platform_result= |
---|
549 | |
---|
550 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
551 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
552 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
553 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
554 | cd "%obuild_pwd_osc_snovis_1%" |
---|
555 | SET obuild_pwd_osc_snovis_1= |
---|
556 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
557 | |
---|
558 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_52 |
---|
559 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.lib" GOTO end_if_copy_53 |
---|
560 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
561 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
562 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
563 | :end_if_copy_53 |
---|
564 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.dll" GOTO end_if_copy_54 |
---|
565 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
566 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
567 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
568 | :end_if_copy_54 |
---|
569 | :end_if_release_52 |
---|
570 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
571 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
572 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
573 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
574 | cd "%obuild_pwd_osc_snovis_1%" |
---|
575 | SET obuild_pwd_osc_snovis_1= |
---|
576 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
577 | |
---|
578 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_55 |
---|
579 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.lib" GOTO end_if_copy_56 |
---|
580 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
581 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
582 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
583 | :end_if_copy_56 |
---|
584 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.dll" GOTO end_if_copy_57 |
---|
585 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
586 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
587 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
588 | :end_if_copy_57 |
---|
589 | :end_if_release_55 |
---|
590 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
591 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
592 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
593 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j |
---|
594 | cd "%obuild_pwd_osc_snovis_1%" |
---|
595 | SET obuild_pwd_osc_snovis_1= |
---|
596 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return |
---|
597 | |
---|
598 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_bhep_path%\%obuild_dir_bin% not found. && GOTO end_if_release_58 |
---|
599 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib" GOTO end_if_copy_59 |
---|
600 | COPY "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
601 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
602 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
603 | :end_if_copy_59 |
---|
604 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.dll" GOTO end_if_copy_60 |
---|
605 | COPY "%obuild_bhep_path%\%obuild_dir_bin%\bhep.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
606 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
607 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
608 | :end_if_copy_60 |
---|
609 | :end_if_release_58 |
---|
610 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
611 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
612 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
613 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
614 | cd "%obuild_pwd_osc_snovis_1%" |
---|
615 | SET obuild_pwd_osc_snovis_1= |
---|
616 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
617 | |
---|
618 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snova_path%\%obuild_dir_bin% not found. && GOTO end_if_release_61 |
---|
619 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib" GOTO end_if_copy_62 |
---|
620 | COPY "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
621 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
622 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
623 | :end_if_copy_62 |
---|
624 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\geomutils.dll" GOTO end_if_copy_63 |
---|
625 | COPY "%obuild_snova_path%\%obuild_dir_bin%\geomutils.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
626 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
627 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
628 | :end_if_copy_63 |
---|
629 | :end_if_release_61 |
---|
630 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
631 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
632 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
633 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
634 | cd "%obuild_pwd_osc_snovis_1%" |
---|
635 | SET obuild_pwd_osc_snovis_1= |
---|
636 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
637 | |
---|
638 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snova_path%\%obuild_dir_bin% not found. && GOTO end_if_release_64 |
---|
639 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib" GOTO end_if_copy_65 |
---|
640 | COPY "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
641 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
642 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
643 | :end_if_copy_65 |
---|
644 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\sngeom.dll" GOTO end_if_copy_66 |
---|
645 | COPY "%obuild_snova_path%\%obuild_dir_bin%\sngeom.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
646 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
647 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
648 | :end_if_copy_66 |
---|
649 | :end_if_release_64 |
---|
650 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
651 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
652 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
653 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
654 | cd "%obuild_pwd_osc_snovis_1%" |
---|
655 | SET obuild_pwd_osc_snovis_1= |
---|
656 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
657 | |
---|
658 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snova_path%\%obuild_dir_bin% not found. && GOTO end_if_release_67 |
---|
659 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib" GOTO end_if_copy_68 |
---|
660 | COPY "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
661 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
662 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
663 | :end_if_copy_68 |
---|
664 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\snvertex.dll" GOTO end_if_copy_69 |
---|
665 | COPY "%obuild_snova_path%\%obuild_dir_bin%\snvertex.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
666 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
667 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
668 | :end_if_copy_69 |
---|
669 | :end_if_release_67 |
---|
670 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
671 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
672 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
673 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
674 | cd "%obuild_pwd_osc_snovis_1%" |
---|
675 | SET obuild_pwd_osc_snovis_1= |
---|
676 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
677 | |
---|
678 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snova_path%\%obuild_dir_bin% not found. && GOTO end_if_release_70 |
---|
679 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.lib" GOTO end_if_copy_71 |
---|
680 | COPY "%obuild_snova_path%\%obuild_dir_bin%\snova.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
681 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
682 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
683 | :end_if_copy_71 |
---|
684 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.dll" GOTO end_if_copy_72 |
---|
685 | COPY "%obuild_snova_path%\%obuild_dir_bin%\snova.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
686 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
687 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
688 | :end_if_copy_72 |
---|
689 | :end_if_release_70 |
---|
690 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
691 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
692 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
693 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
694 | cd "%obuild_pwd_osc_snovis_1%" |
---|
695 | SET obuild_pwd_osc_snovis_1= |
---|
696 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
697 | |
---|
698 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snova_path%\%obuild_dir_bin% not found. && GOTO end_if_release_73 |
---|
699 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova_ui.lib" GOTO end_if_copy_74 |
---|
700 | COPY "%obuild_snova_path%\%obuild_dir_bin%\snova_ui.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
701 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
702 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
703 | :end_if_copy_74 |
---|
704 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova_ui.dll" GOTO end_if_copy_75 |
---|
705 | COPY "%obuild_snova_path%\%obuild_dir_bin%\snova_ui.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
706 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
707 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
708 | :end_if_copy_75 |
---|
709 | :end_if_release_73 |
---|
710 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
711 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
712 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
713 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
714 | cd "%obuild_pwd_osc_snovis_1%" |
---|
715 | SET obuild_pwd_osc_snovis_1= |
---|
716 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
717 | |
---|
718 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_76 |
---|
719 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.lib" GOTO end_if_copy_77 |
---|
720 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
721 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
722 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
723 | :end_if_copy_77 |
---|
724 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.dll" GOTO end_if_copy_78 |
---|
725 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
726 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
727 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
728 | :end_if_copy_78 |
---|
729 | :end_if_release_76 |
---|
730 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
731 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
732 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
733 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
734 | cd "%obuild_pwd_osc_snovis_1%" |
---|
735 | SET obuild_pwd_osc_snovis_1= |
---|
736 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
737 | |
---|
738 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_79 |
---|
739 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.lib" GOTO end_if_copy_80 |
---|
740 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
741 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
742 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
743 | :end_if_copy_80 |
---|
744 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.dll" GOTO end_if_copy_81 |
---|
745 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
746 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
747 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
748 | :end_if_copy_81 |
---|
749 | :end_if_release_79 |
---|
750 | |
---|
751 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
752 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
753 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
754 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
755 | cd "%obuild_pwd_osc_snovis_1%" |
---|
756 | SET obuild_pwd_osc_snovis_1= |
---|
757 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
758 | |
---|
759 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_82 |
---|
760 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.lib" GOTO end_if_copy_83 |
---|
761 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
762 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
763 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
764 | :end_if_copy_83 |
---|
765 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.dll" GOTO end_if_copy_84 |
---|
766 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
767 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
768 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
769 | :end_if_copy_84 |
---|
770 | :end_if_release_82 |
---|
771 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
772 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
773 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
774 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
775 | cd "%obuild_pwd_osc_snovis_1%" |
---|
776 | SET obuild_pwd_osc_snovis_1= |
---|
777 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
778 | |
---|
779 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_85 |
---|
780 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.lib" GOTO end_if_copy_86 |
---|
781 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\snovis.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
782 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
783 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
784 | :end_if_copy_86 |
---|
785 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.dll" GOTO end_if_copy_87 |
---|
786 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\snovis.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
787 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
788 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
789 | :end_if_copy_87 |
---|
790 | :end_if_release_85 |
---|
791 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
792 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
793 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
794 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
795 | cd "%obuild_pwd_osc_snovis_1%" |
---|
796 | SET obuild_pwd_osc_snovis_1= |
---|
797 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
798 | |
---|
799 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_88 |
---|
800 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.lib" GOTO end_if_copy_89 |
---|
801 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
802 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
803 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
804 | :end_if_copy_89 |
---|
805 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.dll" GOTO end_if_copy_90 |
---|
806 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\G4Lab.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
807 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
808 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
809 | :end_if_copy_90 |
---|
810 | :end_if_release_88 |
---|
811 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
812 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
813 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
814 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
815 | cd "%obuild_pwd_osc_snovis_1%" |
---|
816 | SET obuild_pwd_osc_snovis_1= |
---|
817 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
818 | |
---|
819 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_91 |
---|
820 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.lib" GOTO end_if_copy_92 |
---|
821 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\snovis.lib" "%obuild_dir_project%\lib\." 1> copy_exe_error |
---|
822 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
823 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
824 | :end_if_copy_92 |
---|
825 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.dll" GOTO end_if_copy_93 |
---|
826 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\snovis.dll" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
827 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
828 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
829 | :end_if_copy_93 |
---|
830 | :end_if_release_91 |
---|
831 | |
---|
832 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
833 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
834 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
835 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
836 | cd "%obuild_pwd_osc_snovis_1%" |
---|
837 | SET obuild_pwd_osc_snovis_1= |
---|
838 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
839 | |
---|
840 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_94 |
---|
841 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.exe" GOTO end_if_copy_95 |
---|
842 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.exe" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
843 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
844 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
845 | :end_if_copy_95 |
---|
846 | :end_if_release_94 |
---|
847 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
848 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
849 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
850 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
851 | cd "%obuild_pwd_osc_snovis_1%" |
---|
852 | SET obuild_pwd_osc_snovis_1= |
---|
853 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
854 | |
---|
855 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snova_path%\%obuild_dir_bin% not found. && GOTO end_if_release_96 |
---|
856 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\prog_snova.exe" GOTO end_if_copy_97 |
---|
857 | COPY "%obuild_snova_path%\%obuild_dir_bin%\prog_snova.exe" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
858 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
859 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
860 | :end_if_copy_97 |
---|
861 | :end_if_release_96 |
---|
862 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
863 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
864 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
865 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
866 | cd "%obuild_pwd_osc_snovis_1%" |
---|
867 | SET obuild_pwd_osc_snovis_1= |
---|
868 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
869 | |
---|
870 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" ECHO WARNNING : Directory %obuild_snovis_path%\%obuild_dir_bin% not found. && GOTO end_if_release_98 |
---|
871 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.exe" GOTO end_if_copy_99 |
---|
872 | COPY "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.exe" "%obuild_dir_project%\bin\." 1> copy_exe_error |
---|
873 | @IF ERRORLEVEL 1 @TYPE copy_exe_error && @GOTO obuild_return |
---|
874 | @IF NOT ERRORLEVEL 1 @DEL copy_exe_error |
---|
875 | :end_if_copy_99 |
---|
876 | :end_if_release_98 |
---|
877 | |
---|
878 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
879 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
880 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
881 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
882 | cd "%obuild_pwd_osc_snovis_1%" |
---|
883 | SET obuild_pwd_osc_snovis_1= |
---|
884 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_100 |
---|
885 | IF EXIST "%obuild_dir_project%\Resources/Geant4/data" RMDIR /S /Q "%obuild_dir_project%\Resources/Geant4/data" |
---|
886 | IF EXIST "%obuild_dir_project%\Resources/Geant4" RMDIR /S /Q "%obuild_dir_project%\Resources/Geant4" |
---|
887 | IF EXIST "%obuild_dir_project%\Resources/CLHEP" RMDIR /S /Q "%obuild_dir_project%\Resources/CLHEP" |
---|
888 | IF EXIST "%obuild_dir_project%\Resources/Python" RMDIR /S /Q "%obuild_dir_project%\Resources/Python" |
---|
889 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
890 | IF EXIST osc_snovis_v1r0_intel_osx_gcc401.zip DEL osc_snovis_v1r0_intel_osx_gcc401.zip |
---|
891 | cd "%obuild_osc_snovis_path%\obuild" |
---|
892 | :end_if_platform_100 |
---|
893 | SET obuild_platform_result= |
---|
894 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
895 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
896 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
897 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
898 | cd "%obuild_pwd_osc_snovis_1%" |
---|
899 | SET obuild_pwd_osc_snovis_1= |
---|
900 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_102 |
---|
901 | IF EXIST "%obuild_dir_project%\Resources/Geant4/data" RMDIR /S /Q "%obuild_dir_project%\Resources/Geant4/data" |
---|
902 | IF EXIST "%obuild_dir_project%\Resources/Geant4" RMDIR /S /Q "%obuild_dir_project%\Resources/Geant4" |
---|
903 | IF EXIST "%obuild_dir_project%\Resources/CLHEP" RMDIR /S /Q "%obuild_dir_project%\Resources/CLHEP" |
---|
904 | DEL "%obuild_dir_project%"\libXm.so.2* |
---|
905 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
906 | IF EXIST osc_snovis_v1r0_m32_sl3_gcc323.zip DEL osc_snovis_v1r0_m32_sl3_gcc323.zip |
---|
907 | cd "%obuild_osc_snovis_path%\obuild" |
---|
908 | :end_if_platform_102 |
---|
909 | SET obuild_platform_result= |
---|
910 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
911 | IF EXIST obuild_platform.exe DEL obuild_platform.exe |
---|
912 | cd "%obuild_pwd_osc_snovis_0%" |
---|
913 | SET obuild_pwd_osc_snovis_0= |
---|
914 | :obuild_return |
---|
915 | ENDLOCAL |
---|
916 | @ECHO ON |
---|