From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Subject: [PULL 10/13] scripts: Remove the "show-fixed-bugs.sh" file
Date: Thu, 2 Sep 2021 14:49:08 +0200 [thread overview]
Message-ID: <20210902124911.822423-11-thuth@redhat.com> (raw)
In-Reply-To: <20210902124911.822423-1-thuth@redhat.com>
Since we are not using Launchpad anymore, there is no more need for
this script.
Message-Id: <20210825142143.142037-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
scripts/show-fixed-bugs.sh | 91 --------------------------------------
1 file changed, 91 deletions(-)
delete mode 100755 scripts/show-fixed-bugs.sh
diff --git a/scripts/show-fixed-bugs.sh b/scripts/show-fixed-bugs.sh
deleted file mode 100755
index a095a4d6ba..0000000000
--- a/scripts/show-fixed-bugs.sh
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/bin/sh
-
-# This script checks the git log for URLs to the QEMU launchpad bugtracker
-# and optionally checks whether the corresponding bugs are not closed yet.
-
-show_help () {
- echo "Usage:"
- echo " -s <commit> : Start searching at this commit"
- echo " -e <commit> : End searching at this commit"
- echo " -c : Check if bugs are still open"
- echo " -b : Open bugs in browser"
-}
-
-while getopts "s:e:cbh" opt; do
- case "$opt" in
- s) start="$OPTARG" ;;
- e) end="$OPTARG" ;;
- c) check_if_open=1 ;;
- b) show_in_browser=1 ;;
- h) show_help ; exit 0 ;;
- *) echo "Use -h for help." ; exit 1 ;;
- esac
-done
-
-if [ "x$start" = "x" ]; then
- start=$(git tag -l 'v[0-9]*\.[0-9]*\.0' | tail -n 2 | head -n 1)
-fi
-if [ "x$end" = "x" ]; then
- end=$(git tag -l 'v[0-9]*\.[0-9]*\.0' | tail -n 1)
-fi
-
-if [ "x$start" = "x" ] || [ "x$end" = "x" ]; then
- echo "Could not determine start or end revision ... Please note that this"
- echo "script must be run from a checked out git repository of QEMU."
- exit 1
-fi
-
-echo "Searching git log for bugs in the range $start..$end"
-
-urlstr='https://bugs.launchpad.net/\(bugs\|qemu/+bug\)/'
-bug_urls=$(git log $start..$end \
- | sed -n '\,'"$urlstr"', s,\(.*\)\('"$urlstr"'\)\([0-9]*\).*,\2\4,p' \
- | sort -u)
-
-echo Found bug URLs:
-for i in $bug_urls ; do echo " $i" ; done
-
-if [ "x$check_if_open" = "x1" ]; then
- echo
- echo "Checking which ones are still open..."
- for i in $bug_urls ; do
- if ! curl -s -L "$i" | grep "value status" | grep -q "Fix Released" ; then
- echo " $i"
- final_bug_urls="$final_bug_urls $i"
- fi
- done
-else
- final_bug_urls=$bug_urls
-fi
-
-if [ "x$final_bug_urls" = "x" ]; then
- echo "No open bugs found."
-elif [ "x$show_in_browser" = "x1" ]; then
- # Try to determine which browser we should use
- if [ "x$BROWSER" != "x" ]; then
- bugbrowser="$BROWSER"
- elif command -v xdg-open >/dev/null 2>&1; then
- bugbrowser=xdg-open
- elif command -v gnome-open >/dev/null 2>&1; then
- bugbrowser=gnome-open
- elif [ "$(uname)" = "Darwin" ]; then
- bugbrowser=open
- elif command -v sensible-browser >/dev/null 2>&1; then
- bugbrowser=sensible-browser
- else
- echo "Please set the BROWSER variable to the browser of your choice."
- exit 1
- fi
- # Now show the bugs in the browser
- first=1
- for i in $final_bug_urls; do
- "$bugbrowser" "$i"
- if [ $first = 1 ]; then
- # if it is the first entry, give the browser some time to start
- # (to avoid messages like "Firefox is already running, but is
- # not responding...")
- sleep 4
- first=0
- fi
- done
-fi
--
2.27.0
next prev parent reply other threads:[~2021-09-02 13:11 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-02 12:48 [PULL 00/13] Testing, build system and misc patches Thomas Huth
2021-09-02 12:48 ` [PULL 01/13] docs: add definitions of terms for CI/testing Thomas Huth
2021-09-02 12:49 ` [PULL 02/13] libqtest: check for g_setenv() failure Thomas Huth
2021-09-02 12:49 ` [PULL 03/13] gitlab-ci: Merge "build-disabled" with "build-without-default-features" Thomas Huth
2021-09-02 12:49 ` [PULL 04/13] gitlab-ci: Remove superfluous "dnf install" statement Thomas Huth
2021-09-02 12:49 ` [PULL 05/13] gitlab-ci: Fix ..._RUNNER_AVAILABLE variables and document them Thomas Huth
2021-09-02 12:49 ` [PULL 06/13] gitlab-ci: Don't try to use the system libfdt in the debian job Thomas Huth
2021-09-02 12:49 ` [PULL 07/13] meson.build: Fix the check for a usable libfdt Thomas Huth
2021-09-02 12:49 ` [PULL 08/13] meson.build: Don't use internal libfdt if the user requested the system libfdt Thomas Huth
2021-09-02 12:49 ` [PULL 09/13] configure / meson: Move the GBM handling to meson.build Thomas Huth
2021-09-02 12:49 ` Thomas Huth [this message]
2021-09-02 12:49 ` [PULL 11/13] softmmu/vl: Add a "grab-mod" parameter to the -display sdl option Thomas Huth
2021-09-02 12:49 ` [PULL 12/13] softmmu/vl: Deprecate the old grab options Thomas Huth
2021-09-02 12:49 ` [PULL 13/13] softmmu/vl: Deprecate the -sdl and -curses option Thomas Huth
2021-09-03 13:22 ` [PULL 00/13] Testing, build system and misc patches Peter Maydell
2021-09-03 14:19 ` Thomas Huth
2021-09-03 16:35 ` Alex Bennée
2021-09-03 16:49 ` Peter Maydell
2021-09-06 9:51 ` Thomas Huth
2021-09-06 15:08 ` Paolo Bonzini
2021-09-06 15:14 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210902124911.822423-11-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).