chiark / gitweb /
bugzilla-show: use HTTPS; drop warthogs and ubuntu
[bin.git] / bugzilla-show
1 #! /bin/sh -e
2
3 case $1 in
4     subversion)
5         ROOT='http://subversion.tigris.org/issues'
6         ;;
7     openssh)
8         ROOT='https://bugzilla.mindrot.org'
9         ;;
10     gnome)
11         ROOT='http://bugs.gnome.org'
12         ;;
13     mozilla)
14         ROOT='https://bugzilla.mozilla.org'
15         ;;
16     redhat)
17         ROOT='http://bugzilla.redhat.com/bugzilla'
18         ;;
19     kernel)
20         ROOT='https://bugzilla.kernel.org'
21         ;;
22     freedesktop)
23         ROOT='http://bugs.freedesktop.org'
24         ;;
25     *)
26         echo "Unknown Bugzilla installation '$1'. Recognized are:" >&2
27         echo '  subversion' >&2
28         echo '  openssh' >&2
29         echo '  gnome' >&2
30         echo '  mozilla' >&2
31         echo '  redhat' >&2
32         echo '  kernel' >&2
33         echo '  freedesktop' >&2
34         exit 1
35         ;;
36 esac
37
38 ${BROWSER:-w3m} "$ROOT/show_bug.cgi?id=$2"