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

Contents of /trunk/Delivery/scripts/windows/make_delivery.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: 7559 byte(s)
Updated to use svn instead of cvs.

1 @echo off
2 remtrace Adding Wix to the path.
3 set PATH=%PATH;%@EXECSTR[cd]\wix
4 set OLD_PATH=%PATH
5 set OLD_EIFFEL_SRC=%EIFFEL_SRC
6 set INIT_DIR=%@EXECSTR[cd]
7 set TMP_ISE_EIFFEL=%ISE_EIFFEL
8
9 call set_aliases.btm
10 remtrace Set up the environment
11 on break goto broken
12 TIMER ON /1 >> NUL
13 TIMER ON /2 >> NUL
14 iff %@INDEX[%@LOWER[%$],h] ge 0 then
15 echo Installation for ISE Eiffel 5 generation.
16 echo Parameters are no_compile, no_doc, no_new_ec, enterprise no_wizards and no_install (or nothing to fully regenerate the installation).
17 CANCEL
18 endiff
19 iff %@INDEX[%@LOWER[%$],no_compil] ge 0 then
20 set NO_COMPILE="True"
21 else
22 unset /Q NO_COMPILE
23 endiff
24 iff %@INDEX[%@LOWER[%$],no_doc] ge 0 then
25 set NO_DOCUMENTATION="True"
26 else
27 unset /Q NO_DOCUMENTATION
28 endiff
29 iff %@INDEX[%@LOWER[%$],no_install] ge 0 then
30 set NO_INSTALL="True"
31 else
32 unset /Q NO_INSTALL
33 endiff
34 iff %@INDEX[%@LOWER[%$],no_new_ec] ge 0 then
35 set NO_NEW_EC="True"
36 else
37 unset /Q NO_NEW_EC
38 endiff
39 iff %@INDEX[%@LOWER[%$],enterprise] ge 0 then
40 set BUILD_ENTERPRISE_ONLY="True"
41 else
42 unset /Q BUILD_ENTERPRISE_ONLY
43 endiff
44 iff %@INDEX[%@LOWER[%$],no_wizard] ge 0 then
45 set NO_WIZARDS="True"
46 else
47 unset /Q NO_WIZARDS
48 endiff
49
50 set EIFFEL_SRC=%TMP_EIFFEL_SRC
51 cdd %INIT_DIR
52 remtrace Approximative starting time:
53 remtrace %_TIME
54
55 REM This is not a comment, it should create a 0-sized log file.
56 REM > %INSTALL_LOG
57 call check_environment.btm
58 cdd %INIT_DIR
59
60 give_time_to warm up
61 remtrace Retrieve and organize the delivery
62 remtrace Remove %INSTALL_DIR
63 if isdir %INSTALL_DIR fullrd %INSTALL_DIR >>& %INSTALL_LOG
64 if exist %INSTALL_DIR fullrf %INSTALL_DIR >>& %INSTALL_LOG
65 iff exist %INSTALL_DIR then
66 echo Cannot delete %INSTALL_DIR!
67 CANCEL
68 endiff
69 md %INSTALL_DIR
70 cdd %INSTALL_DIR
71 remtrace studio
72 exprt %DEFAULT_CVS_TAG/Delivery/studio studio
73 fullrd studio\help\defaults\unix
74 fullrd studio\spec\unix
75 cdd %INSTALL_DIR\studio\config
76 if not "windows"=="%ISE_PLATFORM" move windows %ISE_PLATFORM
77 cdd %INSTALL_DIR\studio\help\defaults
78 if not "windows"=="%ISE_PLATFORM" move windows %ISE_PLATFORM
79 cdd %INSTALL_DIR
80 remtrace build
81 exprt %DEFAULT_CVS_TAG/Delivery/build build
82 remtrace vision2 tour
83 exprt %DEFAULT_CVS_TAG/Delivery/vision2_tour vision2_tour
84 remtrace eifinit
85 exprt %DEFAULT_CVS_TAG/Delivery/eifinit eifinit
86 remtrace .NET libraries
87 exprt %DEFAULT_CVS_TAG/Src/library.net library.net
88 remtrace examples
89 exprt %DEFAULT_CVS_TAG/Src/examples examples
90 cd examples
91 fullrd eiffeltest
92 fullrd math
93 fullrd matisse
94 fullrd store\matisse
95 fullrd old_com
96 fullrd old_matisse
97 fullrd vision
98 fullrd build
99 cd dotnet
100 fullrd envision
101 fullrd winforms\data\simple_binding
102 cd ..
103 cd vision2
104 fullrd Boxes
105 fullrd drawing_area
106 fullrd ev_list
107 fullrd fake_event
108 fullrd figure
109 fullrd hello_world
110 fullrd menu
111 fullrd multicolumn_list
112 fullrd pixmap
113 fullrd split_area
114 fullrd test_all_widgets
115 fullrd test_events
116 fullrd tests
117 fullrd tutorial
118 fullrd widget_test
119 cd ..
120 cd wel
121 fullrd unicode
122 cd ..
123 cd ..
124 remtrace precomp
125 safe_md %INSTALL_DIR\precomp
126 safe_md %INSTALL_DIR\precomp\spec
127 cd %INSTALL_DIR\precomp\spec
128 exprt %DEFAULT_CVS_TAG/Delivery/precomp/spec/windows %ISE_PLATFORM
129 exprt %DEFAULT_CVS_TAG/Delivery/precomp/spec/dotnet dotnet
130 cdd %INSTALL_DIR
131 remtrace wizards
132 exprt %DEFAULT_CVS_TAG/Delivery/wizards wizards
133 fullrf %INSTALL_DIR\studio\wizards\new_projects\wizard.dsc
134 fullrd %INSTALL_DIR\studio\wizards\new_projects\wizard
135 remtrace C_library
136 exprt %DEFAULT_CVS_TAG/Src/C_library C_library
137 fullrd C_library\.libs
138 remtrace Free add ons
139 exprt %DEFAULT_CVS_TAG/free_add_ons free_add_ons
140 remtrace .NET assemblies
141 exprt %DEFAULT_CVS_TAG/Delivery/dotnet dotnet
142 remtrace root
143 exprt -N %DEFAULT_CVS_TAG/Delivery Delivery
144 move Delivery\*.* . >>& %INSTALL_LOG
145 fullrd Delivery >>& %INSTALL_LOG
146 fullrf INSTALL README make_install compile_libraries
147
148 remtrace Borland files
149 tar xfz bcc55.tar.gz >>& %INSTALL_LOG
150 fullrf BCC55\bin\bcc32.cfg
151 fullrf bcc55.tar.gz
152
153 remtrace Create documentation directory
154 md docs
155
156 remtrace Create directories
157 safe_md %INSTALL_DIR\studio\spec
158 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM
159 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin
160 safe_md %INSTALL_DIR\build\spec
161 safe_md %INSTALL_DIR\build\spec\%ISE_PLATFORM
162 safe_md %INSTALL_DIR\build\spec\%ISE_PLATFORM\bin
163 safe_md %INSTALL_DIR\vision2_tour\spec
164 safe_md %INSTALL_DIR\vision2_tour\spec\%ISE_PLATFORM
165 safe_md %INSTALL_DIR\vision2_tour\spec\%ISE_PLATFORM\bin
166 safe_md %INSTALL_DIR\wizards
167 safe_md %INSTALL_DIR\wizards\com
168 safe_md %INSTALL_DIR\wizards\com\config
169 safe_md %INSTALL_DIR\wizards\dotnet
170 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM\include
171 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM\lib
172 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM\lib\msc
173 safe_md %INSTALL_DIR\studio\spec\%ISE_PLATFORM\lib\bcb
174 safe_md %INSTALL_DIR\rb
175 safe_md %INSTALL_DIR\rb\bin
176
177 cdd %INIT_DIR
178 give_time_to organize the delivery and to start filling it
179
180 call make_libraries.btm
181 cdd %INIT_DIR
182
183 REM Fill directories
184 iff not defined NO_COMPILE then
185 remtrace Update all libraries
186 iff isdir %EIFFEL_SRC then
187 remtrace Delete %EIFFEL_SRC
188 fullrd %EIFFEL_SRC
189 endiff
190 call update_libraries.btm
191 copy %EIFFEL_SRC\library\wel\spec\msc\dll\wel_hook.dll %INSTALL_DIR\studio\spec\%ISE_PLATFORM\bin\
192 copy %EIFFEL_SRC\library\wel\spec\msc\dll\wel_hook.dll %INSTALL_DIR\build\spec\%ISE_PLATFORM\bin\
193 copy %EIFFEL_SRC\library\wel\spec\msc\dll\wel_hook.dll %INSTALL_DIR\vision2_tour\spec\%ISE_PLATFORM\bin\
194 cdd %INIT_DIR
195 give_time_to update libraries
196
197 remtrace Generate needed executables of the bin directory
198 call make_exes.btm
199 cdd %INIT_DIR
200 give_time_to compile exes
201
202 iff not defined NO_WIZARDS then
203 remtrace Generate the precompilation and the "new project" wizards
204 call make_wizards.btm
205 cdd %INIT_DIR
206 give_time_to compile basic wizards
207
208 remtrace Generate the COM wizard
209 call make_com_wizard.btm
210 cdd %INIT_DIR
211 give_time_to compile the COM wizard
212 else
213 quick_move /s studio\wizards
214 quick_move /s wizards
215 endiff
216
217 remtrace Extracting Gobo
218 copy %INSTALL_DIR\free_add_ons\gobo\gobo_34_win.tgz %INSTALL_DIR\library
219 cdd %INSTALL_DIR\library
220 tar xfz gobo_34_win.tgz
221 fullrf gobo_34_win.tgz
222 cdd %INSTALL_DIR\free_add_ons
223 fullrf gobo\gobo_34_unix.tgz
224 fullrf gobo\gobo_34_win.tgz
225 fullrf gobo\gobo_33_ise.tgz
226
227 cdd %INSTALL_DIR\free_add_ons\zad_miner\ace
228 sed -e s/ISE_EIFFEL/INSTALL_DIR/g zad_miner.ace >> new_ace.ace
229 clean_project
230 finalize new_ace.ace
231 fff
232 cleanup_eiffel zad_miner.exe
233 iff not exist zad_miner.exe then
234 echo Couldnt finalize zad_miner.exe.
235 CANCEL
236 endiff
237 fullrf new_ace.ace
238 cd ..
239 safe_md binaries
240 move ace\zad_miner.exe binaries
241 cdd %INIT_DIR
242
243 remtrace Generate Resource Bench
244 call make_rb.btm
245 cdd %INIT_DIR
246 give_time_to compile Resource Bench
247 else
248 remtrace Copy executable files from the old delivery
249 quick_move /s studio\spec
250 quick_move /s studio\wizards
251 quick_move /s rb
252 quick_move /s wizards
253 cdd %INSTALL_DIR
254 safe_md free_add_ons\zad_miner\binaries
255 quick_move free_add_ons\zad_miner\binaries\zad_miner.exe
256 give_time_to copy executables from the old delivery
257 endiff
258
259 iff not defined NO_DOCUMENTATION then
260 remtrace Recompile the documentation
261 call make_xml_documentation
262 cdd %INIT_DIR
263 give_time_to compile the main documentation
264 else
265 remtrace Retrieve the old documentation
266 quick_move docs\eiffel.chm
267 give_time_to copy the main documentation from the old delivery
268 endiff
269 cdd %INIT_DIR
270
271 iff not defined NO_INSTALL then
272 call make_installations.btm
273 cdd %INIT_DIR
274 endiff
275
276 REM Finish
277 remtrace final time:
278 remtrace %_TIME
279 remtrace total used time:
280 remtrace %@TIMER[2]
281
282 REM Error handling and normal ending
283 :broken
284 CANCEL
285

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23