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

Contents of /branches/Eiffel_61/Delivery/scripts/windows/make_delivery.btm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71345 - (show annotations)
Mon Dec 3 05:49:19 2007 UTC (12 years ago) by manus
File size: 7293 byte(s)
Ensured that the Curl DLLs for the win64 platform are not included for a window platform,
  and vice versa, so that we can save some space in the delivery.

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 iff "windows"=="%ISE_PLATFORM" then
82 fullrd win64
83 else
84 move windows\compile_library.bat %ISE_PLATFORM\bin\
85 fullrd windows
86 endiff
87 cdd %STUDIO_DIR\studio\config
88 if not "windows"=="%ISE_PLATFORM" move windows %ISE_PLATFORM
89 cdd %STUDIO_DIR
90 remtrace esbuilder
91 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Delivery/esbuilder esbuilder
92 remtrace vision2 tour
93 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Delivery/vision2_demo vision2_demo
94 remtrace examples
95 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Src/examples examples
96 cd examples
97 fullrd obsolete
98 fullrd eiffeltest
99 fullrd math
100 fullrd matisse
101 fullrd store\matisse
102 fullrd old_com
103 fullrd old_matisse
104 fullrd vision
105 fullrd build
106 cd dotnet
107 fullrd envision
108 fullrd winforms\data\simple_binding
109 cd ..
110 cd vision2
111 fullrd Boxes
112 fullrd drawing_area
113 fullrd ev_list
114 fullrd fake_event
115 fullrd figure
116 fullrd hello_world
117 fullrd menu
118 fullrd multicolumn_list
119 fullrd pixmap
120 fullrd split_area
121 fullrd test_all_widgets
122 fullrd test_events
123 fullrd tests
124 fullrd tutorial
125 fullrd widget_test
126 cd ..
127 cd ..
128 remtrace precomp
129 safe_md %STUDIO_DIR\precomp
130 safe_md %STUDIO_DIR\precomp\spec
131 cd %STUDIO_DIR\precomp\spec
132 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Delivery/precomp/spec/platform %ISE_PLATFORM
133 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Delivery/precomp/spec/dotnet %ISE_PLATFORM-dotnet
134 cdd %STUDIO_DIR
135 remtrace wizards
136 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Delivery/wizards wizards
137 fullrf %STUDIO_DIR\studio\wizards\new_projects\wizard.dsc
138 fullrd %STUDIO_DIR\studio\wizards\new_projects\wizard
139 remtrace C_library
140 safe_md %STUDIO_DIR\C_library
141 cdd %STUDIO_DIR\C_library
142 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Src/C_library/libpng libpng
143 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Src/C_library/zlib zlib
144 cdd %STUDIO_DIR
145 remtrace root
146 exprt -N -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Delivery Delivery
147 move Delivery\*.* . >>& %INSTALL_LOG
148 fullrd Delivery >>& %INSTALL_LOG
149 fullrf INSTALL README make_install compile_libraries
150
151 remtrace MinGW files
152 cdd %INSTALL_DIR
153 exprt -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/free_add_ons/gcc gcc
154
155 cdd %STUDIO_DIR
156 remtrace Create documentation directory
157 md docs
158
159 remtrace Create directories
160 safe_md %STUDIO_DIR\studio\spec
161 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM
162 safe_md %STUDIO_DIR\esbuilder\spec
163 safe_md %STUDIO_DIR\esbuilder\spec\%ISE_PLATFORM
164 safe_md %STUDIO_DIR\esbuilder\spec\%ISE_PLATFORM\bin
165 safe_md %STUDIO_DIR\vision2_demo\spec
166 safe_md %STUDIO_DIR\vision2_demo\spec\%ISE_PLATFORM
167 safe_md %STUDIO_DIR\vision2_demo\spec\%ISE_PLATFORM\bin
168 safe_md %STUDIO_DIR\wizards
169 safe_md %STUDIO_DIR\wizards\com
170 safe_md %STUDIO_DIR\wizards\com\config
171 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM\include
172 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib
173 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\msc
174 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\mingw
175 safe_md %STUDIO_DIR\rb
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 safe_md %EIFFEL_SRC
191
192 REM Clean up the files
193 remtrace Update all source files.
194 cdd %EIFFEL_SRC\..
195 co -r %ORIGO_SVN_REVISION %DEFAULT_ORIGO_SVN/Src %EIFFEL_SRC
196
197 remtrace ISE specific files
198 cdd %EIFFEL_SRC
199 co %DEFAULT_ISE_SVN/Src/library/keygen library/keygen
200 cd tools
201 co %DEFAULT_ISE_SVN/Src/tools/activation activation
202 co %DEFAULT_ISE_SVN/Src/tools/estudio_enterprise estudio_enterprise
203
204 cdd %INIT_DIR
205 call update_libraries.btm
206 copy %EIFFEL_SRC\library\wel\spec\msc\%ISE_PLATFORM\dll\wel_hook.dll %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin\
207 copy %EIFFEL_SRC\library\wel\spec\msc\%ISE_PLATFORM\dll\wel_hook.dll %STUDIO_DIR\esbuilder\spec\%ISE_PLATFORM\bin\
208 copy %EIFFEL_SRC\library\wel\spec\msc\%ISE_PLATFORM\dll\wel_hook.dll %STUDIO_DIR\vision2_demo\spec\%ISE_PLATFORM\bin\
209 cdd %INIT_DIR
210 give_time_to update libraries
211
212 remtrace Generate needed executables of the bin directory
213 call make_exes.btm
214 cdd %INIT_DIR
215 give_time_to compile exes
216
217 iff not defined NO_WIZARDS then
218 remtrace Generate the precompilation and the "new project" wizards
219 call make_wizards.btm
220 cdd %INIT_DIR
221 give_time_to compile basic wizards
222
223 remtrace Generate the COM wizard
224 call make_com_wizard.btm
225 cdd %INIT_DIR
226 give_time_to compile the COM wizard
227 else
228 quick_move /s studio\wizards
229 quick_move /s wizards
230 endiff
231
232 cdd %INIT_DIR
233
234 remtrace Generate Resource Bench
235 call make_rb.btm
236 cdd %INIT_DIR
237 give_time_to compile Resource Bench
238 else
239 remtrace Copy executable files from the old delivery
240 quick_move /s studio\spec
241 quick_move /s studio\wizards
242 quick_move /s rb
243 quick_move /s wizards
244 cdd %STUDIO_DIR
245 give_time_to copy executables from the old delivery
246 endiff
247
248 iff not defined NO_DOCUMENTATION then
249 remtrace Recompile the documentation
250 call make_xml_documentation
251 cdd %INIT_DIR
252 give_time_to compile the main documentation
253 endiff
254 cdd %INIT_DIR
255
256 iff not defined NO_INSTALL then
257 call make_installations.btm
258 cdd %INIT_DIR
259 endiff
260
261 REM Finish
262 remtrace final time:
263 remtrace %_TIME
264 remtrace total used time:
265 remtrace %@TIMER[2]
266
267 REM Error handling and normal ending
268 :broken
269 CANCEL
270

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23