summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorTreeve Jelbert2007-07-13 11:18:05 +0200
committerTreeve Jelbert2007-07-13 11:18:05 +0200
commit7c7a8e8374da433da67af45ffdee2280e9ce4a99 (patch)
tree1d9d91026407e3a03c70d4653bd9950836efa503 /FUNCTIONS
parenta93d709906423f123ad160185c2f37e4cd0037f6 (diff)
FUNCTIONS - extra functions
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS27
1 files changed, 27 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index fd9661a9db..641f60560a 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -502,3 +502,30 @@ QTDIR=/usr
PATH=$QTDIR/bin/qt4:$PATH
cmake_build
}
+
+
+# check whether the QT provider is qt4
+
+function check_if_qt4_provider()
+{
+ if [[ "$(get_spell_provider ${1:-$SPELL} QT)" == "qt4" ]]
+ then
+ return 0
+ fi
+ return 1
+}
+
+
+
+# build using qt3 or qt4
+# some spells an adapt the build process to either qt3 or qt4
+function build_qt3_or_4()
+{
+ QTDIR=$INSTALL_ROOT/usr
+ if [[ check_if_qt4_provider ]]
+ then
+ PATH=$QTDIR/bin/qt4:$PATH
+ fi &&
+ qmake &&
+ make
+}