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\pack\version\obuild |
---|
12 | REM # DOS> DOS\build |
---|
13 | REM # or : |
---|
14 | REM # DOS> call DOS\build.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 | REM #//////////////////////////////////////////////// |
---|
26 | REM #/// Treat arguments : |
---|
27 | REM #//////////////////////////////////////////////// |
---|
28 | |
---|
29 | SET obuild_verbose=no |
---|
30 | |
---|
31 | SET obuild_args= |
---|
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 build [Options] |
---|
39 | ECHO Options : |
---|
40 | ECHO -v : verbose. |
---|
41 | ECHO -x : execute with ECHO ON" |
---|
42 | ECHO -* : passed to packages build script. |
---|
43 | ECHO |
---|
44 | GOTO obuild_return |
---|
45 | :end_if_h |
---|
46 | |
---|
47 | IF NOT "%1%" == "-v" GOTO end_if_v |
---|
48 | SET obuild_verbose=yes |
---|
49 | SET obuild_args=%obuild_args% -v |
---|
50 | SHIFT |
---|
51 | GOTO next_arg |
---|
52 | :end_if_v |
---|
53 | |
---|
54 | IF NOT "%1%" == "-x" GOTO end_if_x |
---|
55 | ECHO ON |
---|
56 | SET obuild_args=%obuild_args% -x |
---|
57 | SHIFT |
---|
58 | GOTO next_arg |
---|
59 | :end_if_x |
---|
60 | |
---|
61 | SET obuild_args=%obuild_args% %1% |
---|
62 | SHIFT |
---|
63 | GOTO next_arg |
---|
64 | |
---|
65 | :end_args |
---|
66 | |
---|
67 | REM #//////////////////////////////////////////////// |
---|
68 | REM #/// End arguments. |
---|
69 | REM #//////////////////////////////////////////////// |
---|
70 | |
---|
71 | |
---|
72 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_0=%%d |
---|
73 | |
---|
74 | IF NOT EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
75 | IF NOT EXIST "%obuild_osc_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
76 | 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 |
---|
77 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
78 | ) |
---|
79 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
80 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
81 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
82 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j |
---|
83 | cd "%obuild_pwd_osc_snovis_1%" |
---|
84 | SET obuild_pwd_osc_snovis_1= |
---|
85 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return |
---|
86 | |
---|
87 | cd "%obuild_bhep_path%\obuild" |
---|
88 | @IF %obuild_verbose% == yes @ECHO ON |
---|
89 | ECHO build bhep/v1r4p2 ... |
---|
90 | CALL DOS\build %obuild_args% |
---|
91 | @ECHO OFF |
---|
92 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
93 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
94 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
95 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
96 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
97 | cd "%obuild_pwd_osc_snovis_1%" |
---|
98 | SET obuild_pwd_osc_snovis_1= |
---|
99 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
100 | |
---|
101 | cd "%obuild_snova_path%\obuild" |
---|
102 | @IF %obuild_verbose% == yes @ECHO ON |
---|
103 | ECHO build snova/v2r0p0 ... |
---|
104 | CALL DOS\build %obuild_args% |
---|
105 | @ECHO OFF |
---|
106 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
107 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_osc_snovis_1=%%d |
---|
108 | cd "%obuild_osc_snovis_path%\%obuild_dir_bin%" |
---|
109 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
110 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snovis v1r1`) DO SET obuild_snovis_path=%%j |
---|
111 | cd "%obuild_pwd_osc_snovis_1%" |
---|
112 | SET obuild_pwd_osc_snovis_1= |
---|
113 | IF NOT DEFINED obuild_snovis_path ECHO Can't find snovis package. && GOTO obuild_return |
---|
114 | |
---|
115 | cd "%obuild_snovis_path%\obuild" |
---|
116 | @IF %obuild_verbose% == yes @ECHO ON |
---|
117 | ECHO build snovis/v1r1 ... |
---|
118 | CALL DOS\build %obuild_args% |
---|
119 | @ECHO OFF |
---|
120 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
121 | |
---|
122 | cd "%obuild_pwd_osc_snovis_0%" |
---|
123 | SET obuild_pwd_osc_snovis_0= |
---|
124 | :obuild_return |
---|
125 | ENDLOCAL |
---|
126 | @ECHO ON |
---|