From 2460c6c964aa1d69f485e4d34126b6a513634989 Mon Sep 17 00:00:00 2001 From: Emanuele Aina <emanuele.aina@collabora.com> Date: Thu, 9 Dec 2021 00:34:49 +0100 Subject: [PATCH] Drop no longer relevant scripts Some tools stopped being relevant once we moved from Jenkins to GitLab a long time ago, let's clean them up. Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com> --- branch-tool.sh | 70 ------------------------------------------- test-repositories.txt | 26 ---------------- updater.sh | 14 --------- 3 files changed, 110 deletions(-) delete mode 100755 branch-tool.sh delete mode 100644 test-repositories.txt delete mode 100755 updater.sh diff --git a/branch-tool.sh b/branch-tool.sh deleted file mode 100755 index 9d5eed5..0000000 --- a/branch-tool.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -set -eu - -pwd=`dirname $0` -pwd=`cd $pwd ; /bin/pwd` - -usage() -{ - echo "$0 -b <branch> -r <release> [-p] - -Creates the branches for each release in all tests projects -All operations are done in a temporary directory - -Options: - -b, --branch: Branch to use as a source for the new branches (usually master) - -r, --release: release to use as the name of target branches (12.34) - -p, --push: Push after update, the default is not to push - -For example: branch-tool.sh -b master -r 18.06 -p -" - exit 1 -} - -BRANCH="" -RELEASE="" -PUSH=0 -CLEAN=0 -while [ $# -gt 0 ] ; do - case $1 in - -b|--branch) shift; BRANCH=$1 ;; - -r|--release) shift; RELEASE=$1 ;; - -p|--push) PUSH=1 ;; - *) usage;; - esac - shift -done - -WORKDIR=`mktemp -d` - -[ -z "${RELEASE}" ] && usage -[ -z "${BRANCH}" ] && usage - -echo "Initial branch: ${BRANCH}" -echo "Release: ${RELEASE}" -echo "Push: ${PUSH}" -echo "Workdir: ${WORKDIR}" - -cd ${WORKDIR} -cat $pwd/test-repositories.txt | while read REPO ; do - echo "Processing ${REPO}" - git clone git@gitlab.apertis.org:tests/${REPO}.git - - git -C ${REPO} checkout -b "${RELEASE}" "${BRANCH}" -done - -cd ${WORKDIR} -if [ "${PUSH}" = "1" ] ; then - cat $pwd/test-repositories.txt | while read REPO ; do - echo "Pushing ${REPO}" - git -C ${REPO} push origin ${RELEASE}:${RELEASE} - done -fi - -cd ${WORKDIR} -cat $pwd/test-repositories.txt | while read REPO ; do - [ -d ${REPO}/.git ] && rm -rf ${WORKDIR}/${REPO} -done -cd $pwd; rmdir ${WORKDIR} - diff --git a/test-repositories.txt b/test-repositories.txt deleted file mode 100644 index baa1f31..0000000 --- a/test-repositories.txt +++ /dev/null @@ -1,26 +0,0 @@ -apparmor -apparmor-basic-profiles -apparmor-bluez-setup -apparmor-bluez -apparmor-chaiwala-system -apparmor-dbus -apparmor-gstreamer1.0 -apparmor-pulseaudio -apparmor-tumbler -bluez-phone -bluez-setup -boot-performance-automated -canterbury -check-dbus-services -cgroups-resource-control -connman -connman-new-supplicant -dbus-dos-reply-time -gettext-i18n -glib-gio-fs -gstreamer1.0-decode -gupnp-services -iptables-basic -ofono -rfkill-toggle -tumbler-thumbnailing diff --git a/updater.sh b/updater.sh deleted file mode 100755 index 1f55663..0000000 --- a/updater.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# This scripts calls update_test_binaries in a loop -# passing it each line to test-repositories.txt - -set -e - -RELEASE=$1 -[ -z "$RELEASE" ] && echo "Needs a release" && exit 1 -BRANCH=$2 -[ -z "$BRANCH" ] && echo "Needs a branch" && exit 1 - -cat test-repositories.txt | while read repository; do - ./update_test_binaries.sh -r ${repository} -l ${RELEASE} -b ${BRANCH} -done -- GitLab