chiark / gitweb /
bugzilla-show: New script to read a bug in any of several Bugzilla
[bin.git] / bugzilla-show
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"