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

Revision 5, 0.8 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####################################
8if [ -e "./qmake" ]
9then
10        rm qmake
11fi
12
13####################################
14# set the path to Qt4.5.0 if it exists
15####################################
16QTBINDIR=/usr/local/Trolltech/Qt-4.5.0/bin
17if [ ! -d "$QTBINDIR" ]
18then
19        echo "Directory $QTBINDIR does not exist. Please verify."
20        return -1
21fi
22
23ln -s $QTBINDIR/qmake qmake
24
25####################################
26# set the path to java if it exists
27####################################
28JAVABINDIR=`which javac 2> /dev/null | wc -l`
29if [[ $JAVABINDIR -eq 0 ]]
30then
31        echo "javac not found. Set PATH to javac and try again."
32        exit -1
33fi
34
35export PATH=$QTBINDIR:$PATH
36export PATH=.:$PATH
Note: See TracBrowser for help on using the browser.