diff options
author | Treeve Jelbert | 2007-07-13 11:18:05 +0200 |
---|---|---|
committer | Treeve Jelbert | 2007-07-13 11:18:05 +0200 |
commit | 7c7a8e8374da433da67af45ffdee2280e9ce4a99 (patch) | |
tree | 1d9d91026407e3a03c70d4653bd9950836efa503 /FUNCTIONS | |
parent | a93d709906423f123ad160185c2f37e4cd0037f6 (diff) |
FUNCTIONS - extra functions
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 +} |