File indexing completed on 2025-01-19 03:59:49
0001 #!/bin/bash 0002 0003 # Script to cleanup installation of KF5 framework from the host system. 0004 # This script must be run as sudo 0005 # 0006 # SPDX-FileCopyrightText: 2015-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0007 # 0008 # SPDX-License-Identifier: BSD-3-Clause 0009 # 0010 0011 # Halt and catch errors 0012 set -eE 0013 trap 'PREVIOUS_COMMAND=$THIS_COMMAND; THIS_COMMAND=$BASH_COMMAND' DEBUG 0014 trap 'echo "FAILED COMMAND: $PREVIOUS_COMMAND"' ERR 0015 0016 ################################################################################################# 0017 # Pre-processing checks 0018 0019 . ../common.sh 0020 ChecksRunAsRoot 0021 0022 rm -vfr /usr/include/Qt* 0023 rm -vfr /usr/lib/libQt5* 0024 rm -vfr /usr/lib/cmake/Qt5* 0025 rm -vfr /usr/libexec/Qt* 0026 rm -vfr /usr/qml 0027 rm -vfr /usr/resources/qt* 0028 rm -vfr /usr/translations 0029 rm -vfr /usr/plugins 0030 rm -vfr /usr/doc 0031 rm -vfr /usr/mkspecs/q*.pri