ParaViewFunctions: Updated Qt version check

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1088
This commit is contained in:
Henry
2015-05-17 11:16:39 +01:00
parent b353c99cfc
commit 41d1059af1
2 changed files with 4 additions and 4 deletions

View File

@ -325,10 +325,10 @@ addQtSupport()
QtMajor=$1 QtMajor=$1
QtMinor=$2 QtMinor=$2
if [ $QtMajor -lt 4 -o $QtMinor -lt 5 ] if [[ ($QtMajor -lt 4) || ($QtMajor -eq 4 && $QtMinor -lt 5) ]]
then then
echo "*** Error: Qt version provided < 4.5" echo "*** Error: Qt version provided < 4.5"
echo "*** Please use the -qmake option to specify the location of a version of Qt >= 4.3 " echo "*** Please use the -qmake option to specify the location of a version of Qt >= 4.5 "
echo "*** e.g." echo "*** e.g."
echo "*** -qmake /usr/local/qt-4.6.2/bin/qmake" echo "*** -qmake /usr/local/qt-4.6.2/bin/qmake"
echo "*** -qmake $installBASE/qt-4.6.2/bin/qmake" echo "*** -qmake $installBASE/qt-4.6.2/bin/qmake"

View File

@ -325,10 +325,10 @@ addQtSupport()
QtMajor=$1 QtMajor=$1
QtMinor=$2 QtMinor=$2
if [ $QtMajor -lt 4 -o $QtMinor -lt 5 ] if [[ ($QtMajor -lt 4) || ($QtMajor -eq 4 && $QtMinor -lt 5) ]]
then then
echo "*** Error: Qt version provided < 4.5" echo "*** Error: Qt version provided < 4.5"
echo "*** Please use the -qmake option to specify the location of a version of Qt >= 4.3 " echo "*** Please use the -qmake option to specify the location of a version of Qt >= 4.5 "
echo "*** e.g." echo "*** e.g."
echo "*** -qmake /usr/local/qt-4.6.2/bin/qmake" echo "*** -qmake /usr/local/qt-4.6.2/bin/qmake"
echo "*** -qmake $installBASE/qt-4.6.2/bin/qmake" echo "*** -qmake $installBASE/qt-4.6.2/bin/qmake"