/[eiffelstudio]/trunk/Delivery/scripts/unix/make_delivery
ViewVC logotype

Contents of /trunk/Delivery/scripts/unix/make_delivery

Parent Directory Parent Directory | Revision Log Revision Log


Revision 84805 - (show annotations)
Thu Nov 4 00:39:04 2010 UTC (9 years, 2 months ago) by manus
File size: 9552 byte(s)
Removed installation of po_files and script which are used to build the mo_files that we are using in EiffelStudio.

1 #!/bin/sh
2
3 # Set up the environment
4 OLD_PATH=$PATH
5 INIT_DIR=`pwd`
6 TMP_EIFFEL_SRC=""
7 TMP_ISE_SRC=""
8 TMP_ISE_LIBRARY=""
9
10 . ./set_aliases
11 echo > $INSTALL_LOG
12
13 echo $* > tmpin$$.tmp
14 awk 'index($0, "h") != 0 { exit 54 }' tmpin$$.tmp
15 if [ $? -eq 54 ] ; then
16 echo Installation for ISE Eiffel 5 generation.
17 echo "Parameters are all (to generate all deliveries), no_compile, no_wizards, no_new_ec and no_install (or nothing to fully regenerate the enterprise installation)."
18 fullrf tmpin$$.tmp
19 CANCEL
20 fi
21 awk 'index($0, "no_comp") != 0 { exit 54 }' tmpin$$.tmp
22 if [ $? -eq 54 ] ; then
23 NO_COMPILE="True"
24 else
25 NO_COMPILE=""
26 fi
27 awk 'index($0, "no_ins") != 0 { exit 54 }' tmpin$$.tmp
28 if [ $? -eq 54 ] ; then
29 NO_INSTALL="True"
30 else
31 NO_INSTALL=""
32 fi
33 awk 'index($0, "no_wiz") != 0 { exit 54 }' tmpin$$.tmp
34 if [ $? -eq 54 ] ; then
35 NO_WIZARDS="True"
36 else
37 NO_WIZARDS=""
38 fi
39 awk 'index($0, "doc") != 0 { exit 54 }' tmpin$$.tmp
40 if [ $? -eq 54 ] ; then
41 NO_DOCUMENTATION=""
42 else
43 NO_DOCUMENTATION="True"
44 fi
45 awk 'index($0, "no_new_ec") != 0 { exit 54 }' tmpin$$.tmp
46 if [ $? -eq 54 ] ; then
47 NO_NEW_EC="True"
48 else
49 NO_NEW_EC=""
50 fi
51 awk 'index($0, "all") != 0 { exit 54 }' tmpin$$.tmp
52 if [ $? -eq 54 ] ; then
53 MULTIPLE_EDITIONS="True"
54 else
55 MULTIPLE_EDITIONS=""
56 fi
57 rm -f tmpin$$.tmp
58
59 cd $INIT_DIR
60 remtrace Approximative starting time:
61 remtrace `date +%c`
62
63 . ./check_environment
64 cd $INIT_DIR
65 if [ -d $EXPORT_DIR ]; then
66 fullrd $EXPORT_DIR
67 fi
68 safe_md $EXPORT_DIR
69
70 remtrace Retrieve and organize the delivery
71 remtrace Remove $INSTALL_DIR
72 if [ -d $INSTALL_DIR ]; then fullrd $INSTALL_DIR >> $INSTALL_LOG; fi
73 if [ -d $INSTALL_DIR ]; then fullrf $INSTALL_DIR >> $INSTALL_LOG; fi
74 if [ -d $INSTALL_DIR ]; then
75 echo "Cannot delete $INSTALL_DIR!"
76 CANCEL
77 fi
78 md $INSTALL_DIR
79 cd $INSTALL_DIR
80 remtrace studio
81 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Delivery/studio studio
82 fullrd studio/spec/windows
83 fullrd studio/spec/win64
84 fullrd studio/config/windows
85 fullrd studio/lang/po_files
86 fullrd studio/lang/script
87 fullrd studio/wizards/new_projects/wizard
88 fullrf studio/wizards/new_projects/wizard.dsc
89 fullrd studio/wizards/new_projects/dotnet
90 fullrf studio/wizards/new_projects/dotnet.dsc
91 fullrd studio/wizards/new_projects/wel
92 fullrf studio/wizards/new_projects/wel.dsc
93
94 remtrace eweasel
95 exprt -N -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/eweasel eweasel
96 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/eweasel/bin eweasel/bin
97 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/eweasel/control eweasel/control
98 fullrf $INSTALL_DIR/eweasel/INSTALL
99
100 remtrace esbuilder
101 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Delivery/esbuilder esbuilder
102 remtrace vision2_demo
103 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Delivery/vision2_demo vision2_demo
104 remtrace examples
105 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Src/examples examples
106 cd examples
107 fullrd obsolete
108 fullrd eiffeltest
109 fullrd math
110 fullrd matisse
111 fullrd store/matisse
112 fullrd old_com
113 fullrd old_matisse
114 fullrd vision
115 fullrd build
116 fullrd dotnet
117 fullrd thread/fancy
118 fullrd vision2/Boxes
119 fullrd vision2/drawing_area
120 fullrd vision2/ev_list
121 fullrd vision2/fake_event
122 fullrd vision2/figure
123 fullrd vision2/hello_world
124 fullrd vision2/menu
125 fullrd vision2/multicolumn_list
126 fullrd vision2/pixmap
127 fullrd vision2/split_area
128 fullrd vision2/test_all_widgets
129 fullrd vision2/test_events
130 fullrd vision2/tests
131 fullrd vision2/tutorial
132 fullrd vision2/widget_test
133
134 remtrace precomp
135 safe_md $INSTALL_DIR/compatible/precomp
136 safe_md $INSTALL_DIR/compatible/precomp/spec
137 cd $INSTALL_DIR/compatible/precomp/spec
138 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Delivery/precomp/spec/platform platform
139 cd platform
140 fullrf *-safe.ecf
141
142 safe_md $INSTALL_DIR/precomp
143 safe_md $INSTALL_DIR/precomp/spec
144 cd $INSTALL_DIR/precomp/spec
145 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Delivery/precomp/spec/platform platform
146
147 remtrace C_library
148 safe_md $INSTALL_DIR/C_library
149 cd $INSTALL_DIR/C_library
150 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Src/C_library/libpng libpng
151 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Src/C_library/zlib zlib
152 cd $INSTALL_DIR
153 remtrace root
154 exprt -N -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Delivery Delivery
155 move Delivery/* . >> $INSTALL_LOG
156 fullrd Delivery >> $INSTALL_LOG
157
158 remtrace Borland files
159 fullrf BCC55.tar.gz
160 fullrf *.bat
161 fullrf *.exe
162 if [ ! -d $NEW_EIFFEL_SRC ]; then
163 md $NEW_EIFFEL_SRC
164 fi
165
166 #Save environment variables
167 TMP_EIFFEL_SRC=$EIFFEL_SRC
168 TMP_ISE_SRC=$ISE_SRC
169 TMP_ISE_LIBRARY=$ISE_LIBRARY
170 EIFFEL_SRC=$NEW_EIFFEL_SRC
171 ISE_SRC=$NEW_ISE_SRC
172 ISE_LIBRARY=$NEW_ISE_LIBRARY
173
174 export ISE_LIBRARY
175 export ISE_SRC
176 export EIFFEL_SRC
177
178 cd $INIT_DIR
179
180 # Fill directories
181 if [ ! "$NO_COMPILE" ]; then
182 remtrace Update all source files.
183 cd $INIT_DIR
184 if [ -d $EIFFEL_SRC ]; then
185 fullrd $EIFFEL_SRC
186 fi
187 md $EIFFEL_SRC
188 co -N -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Src $EIFFEL_SRC
189 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Src $EIFFEL_SRC
190
191 if [ -n "$UNIX_BASE_PATH" ]; then
192 remtrace Adjusting unix base path
193 # updating EIFFEL_ENV
194 rm -f tmp
195 sed -e "/UNIX_BASE_PATH/s|/usr/local|$UNIX_BASE_PATH|g" $EIFFEL_SRC/framework/environment/interface/eiffel_env.e > tmp
196 rm -f $EIFFEL_SRC/framework/environment/interface/eiffel_env.e
197 mv -f tmp $EIFFEL_SRC/framework/environment/interface/eiffel_env.e
198
199 # update finish_freezing
200 rm -f tmp
201 sed -e "/UNIX_BASE_PATH/s|/usr/local|$UNIX_BASE_PATH|g" $INSTALL_DIR/studio/spec/unix/finish_freezing > tmp
202 rm -f $INSTALL_DIR/studio/spec/unix/finish_freezing
203 mv -f tmp $INSTALL_DIR/studio/spec/unix/finish_freezing
204
205 chmod +x $INSTALL_DIR/studio/spec/unix/finish_freezing
206 fi
207
208 if [ -n "$UNIX_LIB_NAME" ]; then
209 remtrace Adjusting unix lib name
210 # updating EIFFEL_ENV
211 rm -f tmp
212 sed -e "/UNIX_LIB_NAME/s/lib/$UNIX_LIB_NAME/g" $EIFFEL_SRC/framework/environment/interface/eiffel_env.e > tmp
213 rm -f $EIFFEL_SRC/framework/environment/interface/eiffel_env.e
214 mv -f tmp $EIFFEL_SRC/framework/environment/interface/eiffel_env.e
215
216 # update finish_freezing
217 rm -f tmp
218 sed -e "/UNIX_LIB_NAME/s/lib/$UNIX_LIB_NAME/g" $INSTALL_DIR/studio/spec/unix/finish_freezing > tmp
219 rm -f $INSTALL_DIR/studio/spec/unix/finish_freezing
220 mv -f tmp $INSTALL_DIR/studio/spec/unix/finish_freezing
221
222 chmod +x $INSTALL_DIR/studio/spec/unix/finish_freezing
223 fi
224
225 remtrace ISE specific files
226 cd $EIFFEL_SRC
227 exprt $DEFAULT_ISE_SVN/Src/library/keygen library/keygen
228 cd tools
229 exprt $DEFAULT_ISE_SVN/Src/tools/activation activation
230 exprt $DEFAULT_ISE_SVN/Src/tools/estudio_enterprise estudio_enterprise
231
232 remtrace Update all libraries
233 cd $INIT_DIR
234 . ./update_libraries library $GTK_DIR
235 cd $INIT_DIR
236 . ./update_libraries compatible/library $GTK_DIR
237
238 remtrace Generate needed executables of the bin directory
239 cd $INIT_DIR
240 . ./make_exes
241 cd $INIT_DIR
242
243 if [ ! "$NO_WIZARDS" ]; then
244 remtrace Generate the precompilation and the \"new project\" wizards
245 . ./make_wizards
246 cd $INIT_DIR
247 else
248 quick_move -r studio/wizards
249 fi
250
251 else
252 remtrace Copy executable files from the old delivery
253 quick_move -r studio/spec
254 quick_move -r studio/wizards
255 fi
256
257 if [ ! "$NO_DOCUMENTATION" ]; then
258 remtrace Check out the documentation
259 # When compiling for GTK 1.2, disable the building of the documentation
260 # since on most machine GTK 1.2 is not installed.
261 cd $INIT_DIR
262 . ./make_xml_documentation
263 fi
264
265 cd $INIT_DIR
266
267 remtrace "Putting the Eiffel libraries in the delivery"
268 . ./make_libraries $INSTALL_DIR library $GTK_DIR
269 safe_md $INSTALL_DIR/compatible
270 . ./make_libraries $INSTALL_DIR/compatible compatible/library $GTK_DIR
271 cd $INIT_DIR
272
273 if [ ! "$NO_INSTALL" ]; then
274 remtrace Compress everything
275 if [ ! "$NO_COMPILE" ]; then
276 remtrace C directory
277 cd $EIFFEL_SRC
278 tar -cf c.tar C
279 bzip2 c.tar
280 move c.tar.bz2 $EXPORT_DIR
281
282 remtrace C_library
283 # Removing parts that we do not need to put in the porterpackage
284 fullrd C_library/curl
285 fullrd C_library/openssl
286 tar -cf c_libs.tar C_library
287 bzip2 c_libs.tar
288 move c_libs.tar.bz2 $EXPORT_DIR
289
290 remtrace Eiffel libraries
291 tar -cf libs.tar library
292 bzip2 libs.tar
293 move libs.tar.bz2 $EXPORT_DIR
294 fi
295 remtrace The delivery itself
296 cd $INSTALL_DIR
297 tar -cf delivery.tar *
298 bzip2 delivery.tar
299 move delivery.tar.bz2 $EXPORT_DIR
300
301 cd $INIT_DIR
302 copy compile* $EXPORT_DIR
303 copy make_images $EXPORT_DIR
304 copy make_cd_image $EXPORT_DIR
305 copy set_aliases $EXPORT_DIR
306
307 # Scripts for building unix layout/packages
308 copy make_unix_layout $EXPORT_DIR
309 copy make_debian_package $EXPORT_DIR
310 copy make_rpm_package $EXPORT_DIR
311 # We checkout to avoid having to include the subversion specific directories
312 exprt -r $ORIGO_SVN_REVISION $DEFAULT_ORIGO_SVN/Delivery/scripts/unix/packaging $EXPORT_DIR/packaging
313 # Now edit `set_aliases' in $EXPORT_DIR as we are now going for compilation mode.
314 cd $EXPORT_DIR
315 rm -f tmp
316 sed -e "s/\/PorterPackage//g" set_aliases > tmp
317 rm -f set_aliases
318 mv -f tmp set_aliases
319 # Update the revision number as well
320 FILE_SVN_REVISION=`$INIT_DIR/set_version.sh $EIFFEL_SRC`
321 sed -e "s/^FILE_SVN_REVISION.*$/FILE_SVN_REVISION=$FILE_SVN_REVISION/g" set_aliases > tmp
322 rm -f set_aliases
323 mv -f tmp set_aliases
324 cd $INIT_DIR
325 fi
326 # Restore environment variables to their original value
327 EIFFEL_SRC=$TMP_EIFFEL_SRC
328 ISE_SRC=$TMP_ISE_SRC
329 ISE_LIBRARY=$TMP_ISE_LIBRARY
330 TMP_EIFFEL_SRC=""
331 TMP_ISE_SRC=""
332 TMP_ISE_LIBRARY=""
333
334 fullrd $NEW_EIFFEL_SRC
335 fullrd $INSTALL_DIR
336 fullrd $DOCUMENT_DIR/xmldoc
337
338 # Finish
339 remtrace final time:
340 remtrace `date +%c`
341
342 # Error handling and normal ending
343 echo You should now run \'compile_exes\' in $EXPORT_DIR, after modifying set_aliases to update the EXPORT_DIR, if necessary.
344 CANCEL

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23