/[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 69758 - (show annotations)
Wed Aug 1 00:34:48 2007 UTC (12 years, 6 months ago) by manus
File size: 7391 byte(s)
By default `gcc' will be in the EiffelStudio dir so that it is part of the zip package.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23