/[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 56002 - (show annotations)
Sun Dec 4 22:32:09 2005 UTC (14 years, 1 month ago) by manus
File size: 9761 byte(s)
Updated to use svn instead of cvs.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23