root/middleware-offline/trunk/_src/eidmw/build_eidmw_suse.source @ 5

Revision 5, 1.6 KB (checked in by vsilva, 9 years ago)

Initial comit

Line 
1#!/bin/sh
2#
3####################################
4# prepare the system to build on a debian system
5# - make a link to qmake of Qt (> 4.3.1 !!)
6# - set the PATH variable for javac
7# set the PATH variable to '.' for 'qmake'
8####################################
9if [ -e "./qmake" ]
10then
11        rm qmake
12fi
13
14####################################
15# set the path to Qt4.5.0 if it exists
16####################################
17QTBINDIR=/usr/local/Trolltech/Qt-4.5.0/bin
18if [ ! -d "$QTBINDIR" ]
19then
20        echo "Directory $QTBINDIR does not exist. Please verify."
21        return -1
22fi
23
24ln -s $QTBINDIR/qmake qmake
25
26####################################
27# set the path to java if it exists
28####################################
29JAVABINDIR=`which javac 2> /dev/null | wc -l`
30if [[ $JAVABINDIR -eq 0 ]]
31then
32        echo "[Error] javac not found. Please verify installation of java and set PATH."
33        return -1
34fi
35
36####################################
37# check Python 2.5
38####################################
39WHICHPYTHON=`which python`
40PYTHONBINDIR=`readlink -f $WHICHPYTHON`
41PYTHONTEST=`readlink -f \`which python\` | grep '2\.[0-5]' | wc -l`
42if [ "$PYTHONBINDIR" == "" ]
43then
44        echo "[Error] Python not found"
45        return -1
46else
47        # check if python 2.5 is the default
48        if [[ $PYTHONTEST -eq 0 ]]
49        then
50                PYTHONBASE=`which python`
51                PYTHON25=/usr/local/bin/python2.5
52                echo "[Error] Python version > 2.5. ($PYTHONBINDIR)"
53                if [ -e "$PYTHON25" ]
54                then
55                        echo "[Error] Change link $PYTHONBASE to $PYTHON25"
56                        exit -1
57                else
58                        echo "[Error] Change link $PYTHONBASE to the python 2.5 installation "
59                        exit -1
60                fi
61        fi
62fi
63
64
65export PATH=.:$PATH
Note: See TracBrowser for help on using the browser.