]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
scripts: have a way to pick the active kernel versions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 15:32:22 +0000 (17:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 15:32:22 +0000 (17:32 +0200)
And track them in the stable queue repo itself.

active_kernel_versions [new file with mode: 0644]
scripts/active_kernel_versions.sh [new file with mode: 0755]
scripts/active_kernel_versions_get.sh [new file with mode: 0755]

diff --git a/active_kernel_versions b/active_kernel_versions
new file mode 100644 (file)
index 0000000..0ccbc7c
--- /dev/null
@@ -0,0 +1,8 @@
+6.5
+6.4
+6.1
+5.15
+5.10
+5.4
+4.19
+4.14
diff --git a/scripts/active_kernel_versions.sh b/scripts/active_kernel_versions.sh
new file mode 100755 (executable)
index 0000000..7781397
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+REAL_SCRIPT=$(realpath -e "${BASH_SOURCE[0]}")
+SCRIPT_TOP="${SCRIPT_TOP:-$(dirname "${REAL_SCRIPT}")}"
+
+for VERSION in $(cat ${SCRIPT_TOP}/../active_kernel_versions); do
+       echo -n "${VERSION} "
+done
+echo ""
+
diff --git a/scripts/active_kernel_versions_get.sh b/scripts/active_kernel_versions_get.sh
new file mode 100755 (executable)
index 0000000..7e54587
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+REAL_SCRIPT=$(realpath -e "${BASH_SOURCE[0]}")
+SCRIPT_TOP="${SCRIPT_TOP:-$(dirname "${REAL_SCRIPT}")}"
+
+VERSIONS=$(${SCRIPT_TOP}/active_kernel_versions.sh)
+V=$(gum choose --no-limit ${VERSIONS})
+echo "${V}"
+exit