]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #29667 : switch between qmake-qt5 and qmake on Fedora
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 12 May 2022 07:48:22 +0000 (09:48 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 12 May 2022 07:48:22 +0000 (09:48 +0200)
products/compil_scripts/qwt-6.1.6.sh

index c53bf05c55675206f666b47889e47c05b066c46b..d35dc8c02eb020bc37b0996d68885aa371b73706 100755 (executable)
@@ -16,9 +16,18 @@ mkdir -p ${PRODUCT_INSTALL}
 cd $SOURCE_DIR
 
 QMAKE_BIN=qmake
-if [ "$DIST_NAME" == "FD" ] && [ "$DIST_VERSION" == "34" ] && [ "$SAT_qt_IS_NATIVE" == "1" ]; then
-    QMAKE_BIN=$(which qmake-qt5)
+if [ "$SAT_qt_IS_NATIVE" == "1" ]; then
+    LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+    case $LINUX_DISTRIBUTION in
+        FD3*)
+            QMAKE_BIN=$(which qmake-qt5)
+            ;;
+        *)
+            echo "WARNING: using QMAKE_BIN = ${QMAKE_BIN}"
+            ;;
+    esac
 fi
+
 echo
 echo "*** prepare $QMAKE_BIN"
 sed -i "s|\(QWT_INSTALL_PREFIX[[:space:]]*\)=\([[:space:]]*\)\(.*\)|\1=\2${PRODUCT_INSTALL}|g" qwtconfig.pri