/[eiffelstudio]/trunk/Delivery/scripts/windows/make_exes.btm
ViewVC logotype

Contents of /trunk/Delivery/scripts/windows/make_exes.btm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 43585 - (show annotations)
Sun Jun 6 19:20:52 2004 UTC (15 years, 8 months ago) by manus
File size: 12075 byte(s)
Now we don't need an extra compilation of the runtime for the non-commercial
 version, because the non-commercial version is now built while building the
 commercial one (saving us some time in doing the delivery, roughly 20 minutes)

1 REM Clean up the files
2 remtrace Update all source files.
3 cdd %EIFFEL_SRC
4 exprt -r %DEFAULT_CVS_TAG -d Eiffel Eiffel
5 exprt -r %DEFAULT_CVS_TAG -d dotnet "Src/dotnet"
6 exprt -r %DEFAULT_CVS_TAG -d C_library "Src/C_library"
7
8 remtrace Compile C code of the libraries
9 remtrace "A tout seigneur tout honneur", let's start with the run-time
10 md %INSTALL_DIR\releases
11 md %INSTALL_DIR\releases\enterprise
12 md %INSTALL_DIR\releases\free_version
13 md %INSTALL_DIR\releases\university_version
14 md %INSTALL_DIR\releases\evaluation
15
16 mkdir %INSTALL_DIR\releases\free_version\lib
17 mkdir %INSTALL_DIR\releases\free_version\lib\bcb
18 mkdir %INSTALL_DIR\releases\free_version\lib\msc
19 mkdir %INSTALL_DIR\releases\enterprise\lib
20 mkdir %INSTALL_DIR\releases\enterprise\lib\bcb
21 mkdir %INSTALL_DIR\releases\enterprise\lib\msc
22
23 remtrace Compile the commercial run-times
24 remtrace Compile a run-time for Borland
25 fullrd C
26 exprt -r %DEFAULT_CVS_TAG -d C runtime
27 cd C
28 alias pause echo
29 call configure win32 b >>& %INSTALL_LOG
30 unalias pause
31 cd %EIFFEL_SRC
32 fullrf C\run-time\LIB\ebench.lib
33 copy C\run-time\LIB\*.lib %INSTALL_DIR\releases\enterprise\lib\bcb
34 copy C\run-time\LIB\*.lib %INSTALL_DIR\releases\free_version\lib\bcb
35 copy C\run-time\FREELIB\*.lib %INSTALL_DIR\releases\free_version\lib\bcb
36 remtrace Compile a run-time for Microsoft
37 fullrd C
38 exprt -r %DEFAULT_CVS_TAG -d C runtime
39 cd C
40 sed -e "s/d:\\apps\\MSVC\\VC98/%C_COMPILER_PATH/g" config.msh >> new_config.msh
41 move new_config.msh config.msh
42 alias pause echo
43 call configure win32 m >>& %INSTALL_LOG
44 unalias pause
45 cd %EIFFEL_SRC
46 fullrf C\run-time\LIB\ebench.lib
47 copy C\run-time\LIB\*.lib %INSTALL_DIR\releases\enterprise\lib\msc
48 copy C\desc\ise_desc.dll %INSTALL_DIR\releases\enterprise\lib\msc
49 copy C\desc\ise_desc.lib %INSTALL_DIR\releases\enterprise\lib\msc
50
51 copy C\run-time\LIB\*.lib %INSTALL_DIR\releases\free_version\lib\msc
52 copy C\run-time\FREELIB\*.lib %INSTALL_DIR\releases\free_version\lib\msc
53 copy C\desc\ise_desc.dll %INSTALL_DIR\releases\free_version\lib\msc
54 copy C\desc\ise_desc.lib %INSTALL_DIR\releases\free_version\lib\msc
55
56 remtrace Compile a dynamic run-time
57 fullrd C
58 exprt -r %DEFAULT_CVS_TAG -d C runtime
59 cd C
60 sed -e "s/d:\\apps\\MSVC\\VC98/%C_COMPILER_PATH/g" config.msh >> new_config.msh
61 move new_config.msh config.msh
62 sed -e "s/\-W3/\-DEIF_MAKE_DLL\ \-W3/g" config.msh >> new_config.msh
63 move new_config.msh config.msh
64 sed -e "s/standard\ mtstandard/dll\ mtdll/g" config.msh >> new_config.msh
65 move new_config.msh config.msh
66 alias pause echo
67 call configure win32 m >>& %INSTALL_LOG
68 unalias pause
69 cd %EIFFEL_SRC
70 fullrf C\run-time\LIB\ebench.lib
71 fullrf C\run-time\LIB\*.exp
72 fullrf C\run-time\FREELIB\*.exp
73 copy C\run-time\LIB\*dll* %INSTALL_DIR\releases\enterprise\lib\msc
74 copy C\run-time\LIB\*dll* %INSTALL_DIR\releases\free_version\lib\msc
75 copy C\run-time\FREELIB\*dll* %INSTALL_DIR\releases\free_version\lib\msc
76 cd %EIFFEL_SRC
77
78 remtrace Copy the header files
79 copy %EIFFEL_SRC\C\run-time\*.h %INSTALL_DIR\studio\spec\%ISE_PLATFORM\include
80 copy %EIFFEL_SRC\C\eif_confmagic.h %INSTALL_DIR\studio\spec\%ISE_PLATFORM\include
81 cd %EIFFEL_SRC
82
83 remtrace Then the C libraries
84 cd %EIFFEL_SRC\C_library
85 fullrd .libs
86
87 remtrace expat
88 cd %EIFFEL_SRC\C_library\expat
89 safe_md %EIFFEL_SRC\C_library\expat\lib
90 msdev expat.dsw /make ALL - RELEASE >>& %INSTALL_LOG
91 iff not exist %EIFFEL_SRC\C_library\expat\bin\xmlparse.dll then
92 remtrace Couldn't recompile xmlparse.dll
93 CANCEL
94 endiff
95 iff not exist %EIFFEL_SRC\C_library\expat\bin\xmltok.dll then
96 remtrace Couldn't recompile xmltok.dll
97 CANCEL
98 endiff
99 copy %EIFFEL_SRC\C_library\expat\bin\xmlparse.dll %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
100 copy %EIFFEL_SRC\C_library\expat\bin\xmltok.dll %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
101 copy %EIFFEL_SRC\C_library\expat\bin\xmlparse.dll %INSTALL_DIR\build\spec\%ISE_PLATFORM\bin
102 copy %EIFFEL_SRC\C_library\expat\bin\xmltok.dll %INSTALL_DIR\build\spec\%ISE_PLATFORM\bin
103 copy %EIFFEL_SRC\C_library\expat\xmlparse\Release\xmlparse.lib %EIFFEL_SRC\C_library\expat\lib
104 copy %EIFFEL_SRC\C_library\expat\xmltok\Release\xmltok.lib %EIFFEL_SRC\C_library\expat\lib
105
106 remtrace libpng
107 cd %EIFFEL_SRC\C_library\libpng
108 default_make
109 remtrace zlib
110 cd %EIFFEL_SRC\C_library\zlib
111 default_make
112 copy %ISE_EIFFEL\library\vision2\spec\msc\lib\*lib*.lib %EIFFEL_SRC\library\vision2\spec\msc\lib
113
114 REM These directories should already have been created by make_delivery. Whatever...
115 safe_md %INSTALL_DIR\studio\spec
116 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM
117 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
118
119 remtrace CLI writer
120 cd %EIFFEL_SRC\Eiffel\library\cli_writer\Clib
121 call nmake
122
123 remtrace Compiling .NET components
124 cdd %INIT_DIR
125 call make_dotnet.btm
126 cdd %EIFFEL_SRC
127
128 REM Compiling EiffelStudio stuff
129 iff defined BUILD_ENTERPRISE_ONLY then
130 remtrace Recompile EiffelStudio
131 cdd %FINALIZATION_DIR
132 copy %EIFFEL_SRC\Eiffel\Ace\newbench.mswin.ace finalizedbench.ace
133 copy %EIFFEL_SRC\Eiffel\Ace\*.* .
134 iff not exist finalizedbench.ace then
135 remtrace Cannot find the finalization Ace for EiffelStudio
136 CANCEL
137 endiff
138
139 remtrace Enterprise edition
140 clean_project
141 finalize finalizedbench.ace
142 fff
143 cleanup_eiffel ec.exe
144 iff not exist ec.exe then
145 remtrace Could not finalize a new "enterprise" EiffelStudio
146 CANCEL
147 endiff
148 move ec.exe %INSTALL_DIR\releases\enterprise
149 else
150 iff not defined NO_NEW_EC then
151 remtrace Enterprise edition for EiffelStudio
152 cdd %FINALIZATION_DIR
153 copy %EIFFEL_SRC\Eiffel\Ace\*.* .
154
155 clean_project
156 finalize newbench.mswin.ace
157 fff
158 cleanup_eiffel ec.exe
159 iff not exist ec.exe then
160 remtrace Could not finalize a new "enterprise" EiffelStudio
161 CANCEL
162 endiff
163 move ec.exe %INSTALL_DIR\releases\enterprise
164
165 remtrace University edition
166 cdd %FINALIZATION_DIR
167 copy %EIFFEL_SRC\Eiffel\Ace\newbench.mswin.ace finalizedbench.ace
168 copy %EIFFEL_SRC\Eiffel\Ace\*.* .
169 iff not exist finalizedbench.ace then
170 remtrace Cannot find the finalization Ace for EiffelStudio
171 CANCEL
172 endiff
173
174 cdd %FINALIZATION_DIR
175 sed -e "s/free/enterprise/g" finalizedbench.ace >> newace.ace
176 move newace.ace finalizedbench.ace
177 cdd %EIFFEL_SRC\Eiffel\library\activation\free
178 sed -e "s/is_evaluating\ := \True/is_evaluating\ :=\ False/g" activation_checker.e >> tmp.e
179 move tmp.e activation_checker.e
180 cdd %EIFFEL_SRC\Eiffel\API\constants
181 sed -e "s/Version_type_name:\ STRING\ is\ \"Enterprise\ Edition\"/Version_type_name:\ STRING\ is\ \"University\ Edition\"/g" system_constants.e >> new_system_constants.e
182 move new_system_constants.e system_constants.e
183 cdd %FINALIZATION_DIR
184 clean_project
185 finalize finalizedbench.ace
186 fff
187 cleanup_eiffel ec.exe
188 iff not exist ec.exe then
189 remtrace Could not finalize a new "University Edition" EiffelStudio
190 CANCEL
191 endiff
192 move ec.exe %INSTALL_DIR\releases\university_version
193
194 remtrace Free edition
195 cdd %FINALIZATION_DIR
196 copy %EIFFEL_SRC\Eiffel\Ace\newbench.mswin.ace finalizedbench.ace
197 copy %EIFFEL_SRC\Eiffel\Ace\*.* .
198 iff not exist finalizedbench.ace then
199 remtrace Cannot find the finalization Ace for EiffelStudio
200 CANCEL
201 endiff
202
203 cdd %FINALIZATION_DIR
204 sed -e "s/free/enterprise/g" finalizedbench.ace >> newace.ace
205 move newace.ace finalizedbench.ace
206
207 cdd %EIFFEL_SRC\Eiffel\library\activation\free
208 sed -e "s/is_evaluating\ := \False/is_evaluating\ :=\ True/g" activation_checker.e >> tmp.e
209 move tmp.e activation_checker.e
210 cdd %EIFFEL_SRC\Eiffel\API\constants
211 sed -e "s/Version_type_name:\ STRING\ is\ \"University\ Edition\"/Version_type_name:\ STRING\ is\ \"Free\ Edition\"/g" system_constants.e >> new_system_constants.e
212 move new_system_constants.e system_constants.e
213 sed -e "s/\ has_case:\ BOOLEAN\ is\ True/\ has_case:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e
214 move new_eiffel_env.e eiffel_env.e
215 sed -e "s/\ has_metrics:\ BOOLEAN\ is\ True/\ has_metrics:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e
216 move new_eiffel_env.e eiffel_env.e
217 sed -e "s/\ has_profiler:\ BOOLEAN\ is\ True/\ has_profiler:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e
218 move new_eiffel_env.e eiffel_env.e
219 sed -e "s/\ has_documentation_generation:\ BOOLEAN\ is\ True/\ has_documentation_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e
220 move new_eiffel_env.e eiffel_env.e
221 sed -e "s/\ has_xmi_generation:\ BOOLEAN\ is\ True/\ has_xmi_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e
222 move new_eiffel_env.e eiffel_env.e
223 sed -e "s/\ has_dll_generation:\ BOOLEAN\ is\ True/\ has_dll_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e
224 move new_eiffel_env.e eiffel_env.e
225 sed -e "s/\ has_signable_generation:\ BOOLEAN\ is\ True/\ has_signable_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e
226 move new_eiffel_env.e eiffel_env.e
227 cdd %FINALIZATION_DIR
228 clean_project
229 finalize finalizedbench.ace
230 fff
231 cleanup_eiffel ec.exe
232 iff not exist ec.exe then
233 remtrace Could not finalize a new "Free Edition" EiffelStudio
234 CANCEL
235 endiff
236 move ec.exe %INSTALL_DIR\releases\free_version
237
238 cdd %INSTALL_DIR\releases
239 copy enterprise\ec.exe evaluation
240 endiff
241 endiff
242
243 remtrace Recompile finish_freezing
244 cdd %EIFFEL_SRC\Eiffel\extra\finish_freezing
245 clean_project
246 finalize mswin-finish_freezing.ace
247 fff
248 cleanup_eiffel finish_freezing.exe
249 iff not exist finish_freezing.exe then
250 remtrace Could not finalize a new finish_freezing
251 CANCEL
252 endiff
253 move finish_freezing.exe %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
254
255 remtrace Recompile quick_finalize
256 cdd %EIFFEL_SRC\Eiffel\extra\quick_c_compilation
257 clean_project
258 finalize Ace.ace
259 fff
260 cleanup_eiffel quick_finalize.exe
261 iff not exist quick_finalize.exe then
262 remtrace Could not finalize a new quick_finalize
263 CANCEL
264 endiff
265 move quick_finalize.exe %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
266
267 remtrace Put estudio.exe in the new delivery
268 REM It should already have been compiled by the configure of the run-time.
269 cdd %EIFFEL_SRC\C\ipc\daemon
270 iff not exist estudio.exe then
271 remtrace Could not finalize a new estudio
272 CANCEL
273 endiff
274 move estudio.exe %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
275
276 remtrace Put x2c.exe in the new delivery
277 REM It should already have been compiled by the configure of the run-time.
278 cdd %EIFFEL_SRC\C\run-time
279 iff not exist x2c.exe then
280 remtrace Could not finalize a new x2c
281 CANCEL
282 endiff
283 move x2c.exe %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
284
285 remtrace Recompile h2e
286 cdd %EIFFEL_SRC\library\wel\extra
287 clean_project
288 finalize h2ew32.ace
289 fff
290 cleanup_eiffel h2e.exe
291 iff not exist h2e.exe then
292 remtrace Could not finalize a new h2e
293 CANCEL
294 endiff
295 move h2e.exe %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
296
297 remtrace Recompile License installation program
298 cdd %EIFFEL_SRC
299 mkdir tools
300 cd tools
301 exprt -r %DEFAULT_CVS_TAG -d cd_key_validator "Src/tools/cd_key_validator"
302 cd %EIFFEL_SRC\tools\cd_key_validator\eiffel_studio_52
303 copy ..\setup.ico .
304 copy ..\setup.rc .
305 clean_project
306 finalize ace.ace
307 fff
308 cleanup_eiffel setup.exe
309 iff not exist setup.exe then
310 remtrace Couldnt generate setup.exe
311 CANCEL
312 endiff
313 call upx.exe setup.exe
314 move setup.exe %INSTALL_DIR
315
316 remtrace Recompile configure_all
317 cdd %EIFFEL_SRC
318 exprt -r %DEFAULT_CVS_TAG -d configure_all "Src/tools/configure_all"
319 cd %EIFFEL_SRC\configure_all
320 copy %EIFFEL_SRC\Eiffel\Ace\ec.ico .
321 clean_project
322 finalize configure_all.ace
323 fff
324 cleanup_eiffel configure_all.exe
325 iff not exist configure_all.exe then
326 remtrace Couldnt generate configure_all.exe
327 CANCEL
328 endiff
329 move configure_all.exe %INSTALL_DIR
330
331 remtrace Recompiling EiffelBuild
332 cdd %INIT_DIR
333 call make_build.btm
334
335 remtrace Recompiling Vision2 tour
336 cdd %INIT_DIR
337 call make_vision2_tour.btm
338
339 remtrace Recompile Legacy++
340 cdd %EIFFEL_SRC
341 exprt -r %DEFAULT_CVS_TAG -d legacy "Src/tools/legacy"
342 cd %EIFFEL_SRC\legacy\PCCTS
343 safe_md bin
344 nmake /f makefile.win
345 cd ..
346 cd legacy
347 msdev legaproj.dsw /make ALL - RELEASE >>& %INSTALL_LOG
348 iff not exist legacy.exe then
349 remtrace Couldnt generate legacy.exe
350 CANCEL
351 endiff
352 move legacy.exe %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
353
354 remtrace Put the last files into the bin directory
355 REM quick_move studio\spec\%ISE_PLATFORM\bin\legacy.exe

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23