chiark / gitweb /
bugzilla-show: New script to read a bug in any of several Bugzilla
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Sun, 19 Oct 2003 12:21:43 +0000 (12:21 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Sun, 19 Oct 2003 12:21:43 +0000 (12:21 +0000)
installations.

bugzilla-show [new file with mode: 0755]

diff --git a/bugzilla-show b/bugzilla-show
new file mode 100755 (executable)
index 0000000..feedded
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh -e
+
+case $1 in
+    subversion)
+       ROOT='http://subversion.tigris.org/issues'
+       ;;
+    openssh)
+       ROOT='http://bugzilla.mindrot.org'
+       ;;
+    *)
+       echo "Unknown Bugzilla installation '$1'. Recognized are:" >&2
+       echo '  subversion' >&2
+       echo '  openssh' >&2
+       exit 1
+       ;;
+esac
+
+${BROWSER:-w3m} "$ROOT/show_bug.cgi?id=$2"