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

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

Initial comit

Line 
1#!/bin/sh
2#
3####################################
4# prepare the system to build on a fedora 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####################################
17#QTBINDIR=/usr/local/Trolltech/Qt-4.5.0/bin
18QTBINDIR=/usr/lib/qt4/bin
19if [ ! -d "$QTBINDIR" ]
20then
21        echo "Directory $QTBINDIR does not exist. Please verify."
22        return -1
23fi
24
25ln -s $QTBINDIR/qmake qmake
26
27####################################
28# set the path to java if it exists
29####################################
30JAVABINDIR=`which javac 2> /dev/null | wc -l`
31
32if [[ $JAVABINDIR -eq 0 ]]
33then
34        echo "Directory JAVABINDIR does not exist. Please verify."
35        return -1
36fi
37
38export PATH=$QTBINDIR:$PATH
39export PATH=.:$PATH
Note: See TracBrowser for help on using the browser.