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

Contents of /branches/Eiffel_68/Delivery/make_install

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86531 - (show annotations)
Tue May 24 07:12:10 2011 UTC (8 years, 6 months ago) by manus
File size: 2698 byte(s)
Created 6.8 branch
1 #!/bin/sh
2
3 echo Welcome to the EiffelStudio installer
4
5 ERROR_ENV=""
6 if [ ! "$ISE_EIFFEL" ]; then
7 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 ERROR_ENV=TRUE
11 fi
12 if [ ! "$ISE_PLATFORM" ]; then
13 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 ERROR_ENV=TRUE
32 fi
33 if [ "$ERROR_ENV" = "TRUE" ]; then
34 echo "When the needed environment variable(s) are set, launch $0 again."
35 exit 1
36 fi
37
38 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 echo "Do you want to precompile EiffelBase (required to compile examples) ? [y/n]"
57 read prec_base
58 echo "Do you want to precompile EiffelVision (might take a while) ? [y/n]"
59 read prec_vision2
60
61 INIT_DIR=`pwd`
62
63 if [ "$prec_base" != "n" ]; then
64 echo " "
65 echo Precompiling EiffelBase
66 cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
67 $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 fi
72 if [ "$prec_vision2" = "y" ]; then
73 if which pkg-config > /dev/null 2>&1 ; then
74 if pkg-config --atleast-version=2.4 gtk+-2.0 ; then
75 echo " "
76 echo Precompiling EiffelVision
77 cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
78 $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 else
83 echo "GTK version 2.4 or later does not seem to be installed"
84 echo "Precompilation of EiffelVision skipped."
85 fi
86 else
87 echo "pkg-config does not seem to be installed"
88 echo "Precompilation of EiffelVision skipped."
89 fi
90 fi
91
92 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