/[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 73758 - (hide annotations)
Wed May 28 21:46:37 2008 UTC (11 years, 8 months ago) by manus
Original Path: trunk/Delivery/make_install
File size: 2698 byte(s)
Improved installation script based on bug#14245.

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 manus 73758 echo "The environment variable ISE_EIFFEL should be set to the directory where"
8     echo "EiffelStudio is installed (typically the current directory)."
9     echo "Current directory is `pwd`"
10 xavier 27648 ERROR_ENV=TRUE
11     fi
12     if [ ! "$ISE_PLATFORM" ]; then
13 manus 73758 echo "The environment variable ISE_PLATFORM should be set to one of the following values,"
14     echo "depending on your platform:"
15     echo " "
16     echo " freebsd-x86"
17     echo " freebsd-x86-64"
18     echo " irix-mips"
19     echo " irix-mips-64"
20     echo " linux-sparc"
21     echo " linux-x86"
22     echo " linux-x86-64"
23     echo " macosx-ppc"
24     echo " macosx-x86"
25     echo " openbsd-x86"
26     echo " solaris-sparc"
27     echo " solaris-sparc-64"
28     echo " solaris-x86"
29     echo " solaris-x86-64"
30     echo " "
31 xavier 27648 ERROR_ENV=TRUE
32     fi
33 martins 69163 if [ "$ERROR_ENV" = "TRUE" ]; then
34 xavier 27648 echo "When the needed environment variable(s) are set, launch $0 again."
35 manus 73758 exit 1
36 xavier 27648 fi
37    
38 manus 73758 ERROR_COMPILER=""
39     compiler="$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/ec"
40     if [ ! -f "$compiler" ]; then
41     echo "Eiffel compiler $compiler not found or not a plain file"
42     ERROR_COMPILER=TRUE
43     elif [ ! -x "$compiler" ]; then
44     echo "Eiffel compiler $compiler not executable"
45     ERROR_COMPILER=TRUE
46     elif [ ! -s "$compiler" ]; then
47     echo "Eiffel compiler $compiler has size 0"
48     ERROR_COMPILER=TRUE
49     fi
50     if [ "$ERROR_COMPILER" = "TRUE" ]; then
51     echo "Cannot precompile due to missing or nonexecutable compiler."
52     echo "Please check that EiffelStudio was installed correctly."
53     exit 1
54     fi
55    
56 manus 29404 echo "Do you want to precompile EiffelBase (required to compile examples) ? [y/n]"
57 xavier 27648 read prec_base
58 manus 53540 echo "Do you want to precompile EiffelVision (might take a while) ? [y/n]"
59 xavier 27648 read prec_vision2
60    
61     INIT_DIR=`pwd`
62    
63     if [ "$prec_base" != "n" ]; then
64 manus 73758 echo " "
65     echo Precompiling EiffelBase
66 manus 59740 cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
67 manus 73758 $compiler -precompile -config base.ecf -c_compile -clean
68     echo " "
69     echo Precompiling multithreaded EiffelBase
70     $compiler -precompile -config base-mt.ecf -c_compile -clean
71 xavier 27648 fi
72 manus 29404 if [ "$prec_vision2" = "y" ]; then
73 manus 55358 if which pkg-config > /dev/null 2>&1 ; then
74 manus 53540 if pkg-config --atleast-version=2.4 gtk+-2.0 ; then
75 manus 73758 echo " "
76     echo Precompiling EiffelVision
77 manus 59740 cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
78 manus 73758 $compiler -precompile -config vision2.ecf -c_compile -clean
79     echo " "
80     echo Precompiling multithreaded EiffelVision
81     $compiler -precompile -config vision2-mt.ecf -c_compile -clean
82 manus 53540 else
83 manus 73758 echo "GTK version 2.4 or later does not seem to be installed"
84     echo "Precompilation of EiffelVision skipped."
85 manus 53540 fi
86     else
87 manus 73758 echo "pkg-config does not seem to be installed"
88     echo "Precompilation of EiffelVision skipped."
89 manus 53540 fi
90 xavier 27648 fi
91    
92 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