chiark / gitweb /
23066b9c8cb75dea23861d232710c39e400f6ba5
[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='http://bugzilla.mindrot.org'
9         ;;
10     warthogs)
11         ROOT='http://bugzilla.warthogs.hbd.com/bugzilla'
12         ;;
13     ubuntu)
14         ROOT='http://bugzilla.ubuntu.com'
15         ;;
16     *)
17         echo "Unknown Bugzilla installation '$1'. Recognized are:" >&2
18         echo '  subversion' >&2
19         echo '  openssh' >&2
20         echo '  warthogs' >&2
21         echo '  ubuntu' >&2
22         exit 1
23         ;;
24 esac
25
26 ${BROWSER:-w3m} "$ROOT/show_bug.cgi?id=$2"