aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/linux-removethemall.sh
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-02-03 09:15:43 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-02-03 09:15:43 +0100
commitd641d6546ba36aea2f527cca852b04fcf2a97f6d (patch)
tree50ef91108a67410e5ed4d69187df44e580ea98d5 /coin/provisioning/common/linux-removethemall.sh
parent321d5f1488938ad80f207a03a02101ebbf8ce763 (diff)
parenta36977963a9b6fad940f6ae8395401ce567f4b49 (diff)
Merge remote-tracking branch 'origin/5.6' into 5.8
Conflicts: coin/provisioning/qtci-linux-RHEL-6.6-x86_64/android_linux.sh Change-Id: I10fcdfc0af68741d931f4732783bafdad2fffc4a
Diffstat (limited to 'coin/provisioning/common/linux-removethemall.sh')
-rwxr-xr-xcoin/provisioning/common/linux-removethemall.sh49
1 files changed, 49 insertions, 0 deletions
diff --git a/coin/provisioning/common/linux-removethemall.sh b/coin/provisioning/common/linux-removethemall.sh
new file mode 100755
index 00000000..4386ec74
--- /dev/null
+++ b/coin/provisioning/common/linux-removethemall.sh
@@ -0,0 +1,49 @@
+#!/bin/env bash
+
+#############################################################################
+##
+## Copyright (C) 2017 The Qt Company Ltd.
+## Contact: http://www.qt.io/licensing/
+##
+## This file is part of the provisioning scripts of the Qt Toolkit.
+##
+## $QT_BEGIN_LICENSE:LGPL21$
+## Commercial License Usage
+## Licensees holding valid commercial Qt licenses may use this file in
+## accordance with the commercial license agreement provided with the
+## Software or, alternatively, in accordance with the terms contained in
+## a written agreement between you and The Qt Company. For licensing terms
+## and conditions see http://www.qt.io/terms-conditions. For further
+## information use the contact form at http://www.qt.io/contact-us.
+##
+## GNU Lesser General Public License Usage
+## Alternatively, this file may be used under the terms of the GNU Lesser
+## General Public License version 2.1 or version 3 as published by the Free
+## Software Foundation and appearing in the file LICENSE.LGPLv21 and
+## LICENSE.LGPLv3 included in the packaging of this file. Please review the
+## following information to ensure the GNU Lesser General Public License
+## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+##
+## As a special exception, The Qt Company gives you certain additional
+## rights. These rights are described in The Qt Company LGPL Exception
+## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+##
+## $QT_END_LICENSE$
+##
+#############################################################################
+
+# This script removes preinstalled sw.
+# NOTE! Make sure that ALL software which are removed here have provision script under platrom folders which calls this script
+
+function RemoveDir {
+ targetFolder=$1
+
+ if [ -d "$targetFolder" ]; then
+ echo "Removing existing $targetFolder..."
+ sudo rm -fr "$targetFolder"
+ fi
+}
+
+# Android
+RemoveDir /opt/android