OSDN Git Service

bugzilla_mesa.sh: Drop "Bug " from sed command
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 7 Jul 2016 10:51:13 +0000 (11:51 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 7 Jul 2016 15:12:34 +0000 (16:12 +0100)
After a recent Bugzilla update the word is no longer in the title. Thus
the script ended up producing bogus HTML.

Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit f35f8464ecf35de769629d316db620472a92f995)

bin/bugzilla_mesa.sh

index 0cff426..49b9ce9 100755 (executable)
@@ -40,7 +40,7 @@ else
        for i in $urls
        do
                id=$(echo $i | cut -d'=' -f2)
-               summary=$(wget --quiet -O - $i | grep -e '<title>.*</title>' | sed -e 's/ *<title>Bug [0-9]\+ &ndash; \(.*\)<\/title>/\1/')
+               summary=$(wget --quiet -O - $i | grep -e '<title>.*</title>' | sed -e 's/ *<title>[0-9]\+ &ndash; \(.*\)<\/title>/\1/')
                echo "<li><a href=\"$i\">Bug $id</a> - $summary</li>"
                echo ""
        done