qtbase: remove redundant directory checks
addToSearchPath already checks if the directory exists before adding it to the path; it's not necessary to check it again.
This commit is contained in:
parent
b44923561b
commit
ebb9c07168
|
@ -19,21 +19,10 @@ addQtModule() {
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d "$1/lib/qt5/plugins" ]]; then
|
|
||||||
addToSearchPath QT_PLUGIN_PATH "$1/lib/qt5/plugins"
|
addToSearchPath QT_PLUGIN_PATH "$1/lib/qt5/plugins"
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d "$1/lib/qt5/imports" ]]; then
|
|
||||||
addToSearchPath QML_IMPORT_PATH "$1/lib/qt5/imports"
|
addToSearchPath QML_IMPORT_PATH "$1/lib/qt5/imports"
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d "$1/lib/qt5/qml" ]]; then
|
|
||||||
addToSearchPath QML2_IMPORT_PATH "$1/lib/qt5/qml"
|
addToSearchPath QML2_IMPORT_PATH "$1/lib/qt5/qml"
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d "$1/share" ]]; then
|
|
||||||
addToSearchPath XDG_DATA_DIRS "$1/share"
|
addToSearchPath XDG_DATA_DIRS "$1/share"
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rmQtModules() {
|
rmQtModules() {
|
||||||
|
|
Loading…
Reference in New Issue