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

Diff of /branches/Eiffel_68/Delivery/make_install

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 69163 by martins, Mon Jun 18 23:12:48 2007 UTC revision 73758 by manus, Wed May 28 21:46:37 2008 UTC
# Line 4  echo Welcome to the EiffelStudio install Line 4  echo Welcome to the EiffelStudio install
4    
5  ERROR_ENV=""  ERROR_ENV=""
6  if [ ! "$ISE_EIFFEL" ]; then  if [ ! "$ISE_EIFFEL" ]; then
7          echo "The environment variable ISE_EIFFEL should be set to the directory where EiffelStudio is installed (typically the current directory: `pwd`)"          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          ERROR_ENV=TRUE
11  fi  fi
12  if [ ! "$ISE_PLATFORM" ]; then  if [ ! "$ISE_PLATFORM" ]; then
13          echo The environment variable ISE_PLATFORM should be set to one of these values, depending on your platform:          echo "The environment variable ISE_PLATFORM should be set to one of the following values,"
14          echo linux-x86, linux-x86-64 irix-mips, irix-mips-64, solaris-sparc, solaris-sparc-64, solaris-x86, ...          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          ERROR_ENV=TRUE
32  fi  fi
33  if [ "$ERROR_ENV" = "TRUE" ]; then  if [ "$ERROR_ENV" = "TRUE" ]; then
34          echo "When the needed environment variable(s) are set, launch $0 again."          echo "When the needed environment variable(s) are set, launch $0 again."
35          exit          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  fi
55    
56  echo "Do you want to precompile EiffelBase (required to compile examples) ? [y/n]"  echo "Do you want to precompile EiffelBase (required to compile examples) ? [y/n]"
# Line 25  read prec_vision2 Line 61  read prec_vision2
61  INIT_DIR=`pwd`  INIT_DIR=`pwd`
62    
63  if [ "$prec_base" != "n" ]; then  if [ "$prec_base" != "n" ]; then
64          echo Precompile EiffelBase          echo " "
65            echo Precompiling EiffelBase
66          cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM          cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
67          $ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/ec -precompile -config base.ecf -c_compile -clean          $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  fi
72  if [ "$prec_vision2" = "y" ]; then  if [ "$prec_vision2" = "y" ]; then
73          if which pkg-config > /dev/null 2>&1 ; then          if which pkg-config > /dev/null 2>&1 ; then
74                  if pkg-config --atleast-version=2.4 gtk+-2.0 ; then                  if pkg-config --atleast-version=2.4 gtk+-2.0 ; then
75                          echo Precompile EiffelVision                          echo " "
76                            echo Precompiling EiffelVision
77                          cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM                          cd $ISE_EIFFEL/precomp/spec/$ISE_PLATFORM
78                          $ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/ec -precompile -config vision2.ecf -c_compile -clean                          $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                  else
83                          echo "GTK 2.4 does not seem to be installed"                          echo "GTK version 2.4 or later does not seem to be installed"
84                          echo "Precompilation of EiffelVision interrupted."                          echo "Precompilation of EiffelVision skipped."
85                  fi                  fi
86          else          else
87                  echo "GTK 2.4 does not seem to be installed"                  echo "pkg-config does not seem to be installed"
88                  echo "Precompilation of EiffelVision interrupted."                  echo "Precompilation of EiffelVision skipped."
89          fi          fi
90  fi  fi
91    

Legend:
Removed from v.69163  
changed lines
  Added in v.73758

  ViewVC Help
Powered by ViewVC 1.1.23