aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2021-02-22 15:35:51 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2021-02-24 09:38:12 +0200
commitd183e0be48dd1e03ac2e8c0d3113fa70189961bc (patch)
treebf8da5f1644fd9d1c425851880a5c0802c39f814
parent082832ce98ae195060cb229e9218d7d62f275ffe (diff)
Add helper script for updating meta layers
Script updates all or selected meta layers to their latest revision from the upstream branch configured in the manifest. The SHA1s are also updated to the manifest. Change-Id: Idac97d4dfe6838cb5e63f0b04e241f9b9a2013eb Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rwxr-xr-xscripts/update-meta-layers.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/update-meta-layers.sh b/scripts/update-meta-layers.sh
new file mode 100755
index 00000000..46bce2cb
--- /dev/null
+++ b/scripts/update-meta-layers.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+############################################################################
+##
+## Copyright (C) 2021 The Qt Company Ltd.
+## Contact: https://www.qt.io/licensing/
+##
+## This file is part of the Boot to Qt meta layer.
+##
+## $QT_BEGIN_LICENSE:GPL$
+## 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 https://www.qt.io/terms-conditions. For further
+## information use the contact form at https://www.qt.io/contact-us.
+##
+## GNU General Public License Usage
+## Alternatively, this file may be used under the terms of the GNU
+## General Public License version 3 or (at your option) any later version
+## approved by the KDE Free Qt Foundation. The licenses are as published by
+## the Free Software Foundation and appearing in the file LICENSE.GPL3
+## included in the packaging of this file. Please review the following
+## information to ensure the GNU General Public License requirements will
+## be met: https://www.gnu.org/licenses/gpl-3.0.html.
+##
+## $QT_END_LICENSE$
+##
+############################################################################
+
+# Checkout latest revision of all or selected meta layers and update the sha1s to the manifest.xml
+
+MANIFEST=$(dirname $(realpath $0))/manifest.xml
+
+repo sync -n
+repo forall $@ -c "git checkout \$REPO_REMOTE/\$REPO_UPSTREAM ; sed -i -e s:\$REPO_LREV:\$(git rev-parse HEAD): ${MANIFEST}"