/[eiffelstudio]/branches/Eiffel_68/Delivery/make_install
ViewVC logotype

Annotation of /branches/Eiffel_68/Delivery/make_install

Parent Directory Parent Directory | Revision Log Revision Log


Revision 69163 - (hide annotations)
Mon Jun 18 23:12:48 2007 UTC (12 years, 7 months ago) by martins
Original Path: trunk/Delivery/make_install
File size: 1606 byte(s)
Removed version number and changed name to EiffelStudio.
Fixed bug which did not abort installation in the case the environment variables are not properly set.
1 xavier 27648 #!/bin/sh
2    
3 martins 69163 echo Welcome to the EiffelStudio installer
4 xavier 27648
5     ERROR_ENV=""
6     if [ ! "$ISE_EIFFEL" ]; then
7 martins 69163 echo "The environment variable ISE_EIFFEL should be set to the directory where EiffelStudio is installed (typically the current directory: `pwd`)"
8 xavier 27648 ERROR_ENV=TRUE
9     fi
10     if [ ! "$ISE_PLATFORM" ]; then
11     echo The environment variable ISE_PLATFORM should be set to one of these values, depending on your platform:
12 manus 64866 echo linux-x86, linux-x86-64 irix-mips, irix-mips-64, solaris-sparc, solaris-sparc-64, solaris-x86, ...
13 xavier 27648 ERROR_ENV=TRUE
14     fi
15 martins 69163 if [ "$ERROR_ENV" = "TRUE" ]; then
16 xavier 27648 echo "When the needed environment variable(s) are set, launch $0 again."
17     exit
18     fi
19    
20 manus 29404 echo "Do you want to precompile EiffelBase (required to compile examples) ? [y/n]"
21 xavier 27648 read prec_base
22 manus 53540 echo "Do you want to precompile EiffelVision (might take a while) ? [y/n]"
23 xavier 27648 read prec_vision2
24    
25     INIT_DIR=`pwd`
26    
27     if [ "$prec_base" != "n" ]; then
28     echo Precompile EiffelBase
29 manus 59740 cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
30     $ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/ec -precompile -config base.ecf -c_compile -clean
31 xavier 27648 fi
32 manus 29404 if [ "$prec_vision2" = "y" ]; then
33 manus 55358 if which pkg-config > /dev/null 2>&1 ; then
34 manus 53540 if pkg-config --atleast-version=2.4 gtk+-2.0 ; then
35     echo Precompile EiffelVision
36 manus 59740 cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
37     $ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/ec -precompile -config vision2.ecf -c_compile -clean
38 manus 53540 else
39     echo "GTK 2.4 does not seem to be installed"
40     echo "Precompilation of EiffelVision interrupted."
41     fi
42     else
43     echo "GTK 2.4 does not seem to be installed"
44     echo "Precompilation of EiffelVision interrupted."
45     fi
46 xavier 27648 fi
47    
48 manus 29376 cd $INIT_DIR

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23