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

Contents of /trunk/Delivery/scripts/unix/make_images

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71203 - (show annotations)
Sun Nov 18 05:13:27 2007 UTC (12 years, 2 months ago) by manus
File size: 2375 byte(s)
Use relative path to execute `make_cd_images' in case . is not in our path.

1 #!/bin/sh
2
3 if [ $# -eq 0 ]; then
4 echo Usage: make_images platform
5 exit 1
6 fi
7
8 ISE_PLATFORM=$1; export ISE_PLATFORM
9
10 # Set up the environment
11 . ./set_aliases
12 OLD_PATH=$PATH
13 INIT_DIR=`pwd`
14 EIFFEL_SRC=$EXPORT_DIR; export EIFFEL_SRC
15 ISE_EIFFEL=$FINAL_INSTALL_DIR; export ISE_EIFFEL
16 INSTALL_DIR=$FINAL_INSTALL_DIR
17
18 echo > $COMPILE_LOG
19
20 if [ -z "$ISE_PLATFORM" ]; then
21 remtrace Couldnt find environment variable ISE_PLATFORM
22 CANCEL
23 fi
24
25 # Check everything's fine
26 if [ ! -d $EXPORT_DIR ]; then
27 remtrace Couldnt find the directory with the compressed files.
28 CANCEL
29 fi
30
31 if [ -f ec_ent.tar.bz2 ]; then
32 MULTIPLE_EDITIONS="True"
33 else
34 MULTIPLE_EDITIONS=""
35 fi
36
37 cd $EXPORT_DIR
38
39 if [ ! -d cdrom ]; then
40 mkdir cdrom
41 fi
42
43 # Copy runtime files
44 cp -r runtimes/* $INSTALL_DIR/studio/spec/$ISE_PLATFORM/lib
45
46 remtrace Preparing GPL version
47 bunzip2 -c $EXPORT_DIR/ecs/ec_gpl.bz2 > $INSTALL_DIR/studio/spec/$ISE_PLATFORM/bin/ec
48 chmod a+rx $INSTALL_DIR/studio/spec/$ISE_PLATFORM/bin/ec
49 chmod go-w $INSTALL_DIR/studio/spec/$ISE_PLATFORM/bin/ec
50
51 remtrace Building GPL CD image
52 mv Eiffel61 cdrom
53 ./make_cd_image Eiffel61_gpl Eiffel61_gpl.iso cdrom
54 bzip2 Eiffel61_gpl.iso
55 mv Eiffel61_gpl.iso.bz2 Eiffel61_gpl_$FILE_SVN_REVISION-$ISE_PLATFORM.iso.bz2
56 mv cdrom/Eiffel61 Eiffel61
57 tar -cf Eiffel61_gpl_$FILE_SVN_REVISION-$ISE_PLATFORM.tar Eiffel61
58 bzip2 Eiffel61_gpl_$FILE_SVN_REVISION-$ISE_PLATFORM.tar
59
60 if [ "$MULTIPLE_EDITIONS" ]; then
61 remtrace Preparing Enterprise version
62 bunzip2 -c $EXPORT_DIR/ecs/ec_ent.bz2 > $INSTALL_DIR/studio/spec/$ISE_PLATFORM/bin/ec
63 chmod a+rx $INSTALL_DIR/studio/spec/$ISE_PLATFORM/bin/ec
64 chmod go-w $INSTALL_DIR/studio/spec/$ISE_PLATFORM/bin/ec
65
66 remtrace copying CD key validator
67 move setup $INSTALL_DIR/register
68 chmod a+rx $INSTALL_DIR/register
69 mkdir $INSTALL_DIR/setup
70 cp $INSTALL_DIR/studio/bitmaps/png/logo.png $INSTALL_DIR/setup/install_logo.png
71 cp $INSTALL_DIR/studio/bitmaps/png/activation.png $INSTALL_DIR/setup/install_left.png
72
73 remtrace Building Enterprise CD image
74 mv Eiffel61 cdrom
75 make_cd_image Eiffel61_enterprise Eiffel61_enterprise.iso cdrom
76 bzip2 Eiffel61_enterprise.iso
77 mv Eiffel61_enterprise.iso.bz2 Eiffel61_enterprise_$FILE_SVN_REVISION-$ISE_PLATFORM.iso.bz2
78 mv cdrom/Eiffel61 Eiffel61
79 tar -cf Eiffel61_enterprise_$FILE_SVN_REVISION-$ISE_PLATFORM.tar Eiffel61
80 bzip2 Eiffel61_enterprise_$FILE_SVN_REVISION-$ISE_PLATFORM.tar
81 fi
82
83

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23