[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-132-g254233c

Ian Beckwith ianb at erislabs.net
Mon Oct 25 01:39:02 UTC 2010


The following commit has been merged in the master branch:
commit f9b0161137864f1fd21e02559f6e79041f65d6d9
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Mon Oct 25 00:53:52 2010 +0100

    openbsd: support -misc and -tech. Thanks to Sunil Nimmagadda for the patch.

diff --git a/AUTHORS b/AUTHORS
index efeb79c..82532aa 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -124,5 +124,6 @@ Carl Fredrik Hammar    <hammy.lite at gmail.com>
 Andy Valencia          <ajv-914-325-0787 at vsta.org>
 Philip Armstrong       <phil at kantaka.co.uk>
 Dan Jacobson           <jidanni at jidanni.org>
+Sunil Nimmagadda       <sunil at devio.us>
 
 If we've missed anyone, let us know.
diff --git a/ChangeLog b/ChangeLog
index 0ae4e1a..c95f209 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-25  Ian Beckwith  <ianb at erislabs.net>
+
+	* openbsd: support -misc and -tech. Thanks to
+	  Sunil Nimmagadda for the patch.
+
 2010-08-22  Jameson Rollins <jrollins at finestructure.net>
 
 	* surfraw.IN: Improve listing of elvi.
diff --git a/elvi/openbsd b/elvi/openbsd
index a4ee5d4..948a532 100755
--- a/elvi/openbsd
+++ b/elvi/openbsd
@@ -7,6 +7,8 @@ w3_config_hook () {
 defyn   SURFRAW_openbsd_mail            no
 defyn   SURFRAW_openbsd_pr              no
 defyn   SURFRAW_openbsd_ports           no
+defyn   SURFRAW_openbsd_mail_misc	no
+defyn   SURFRAW_openbsd_mail_tech	no
 }
 
 w3_usage_hook () {
@@ -24,6 +26,10 @@ Local options:
   -ps[=(yes|no)]                Search ports.
                                 Default: $SURFRAW_openbsd_ports
                                 Environment: SURFRAW_openbsd_ports
+  -misc[=(yes|no)]		Search misc mailing list.
+				Default: $SURFRAW_openbsd_mail_misc
+  -tech[=(yes|no)]		Search tech mailing list.
+				Default: $SURFRAW_openbsd_mail_tech
 Examples:
   $w3_argv0                     Teleport to the OpenBSD website
   $w3_argv0 mycroft             Search OpenBSD website for odeur de mycroft
@@ -32,6 +38,8 @@ Examples:
   $w3_argv0 -pr                 Query Problem Report form
   $w3_argv0 -pr 666             Display PR 666
   $w3_argv0 -ps surfraw         Search ports for surfraw
+  $w3_argv0 -misc supermicro    Search misc mailing list for supermico
+  $w3_argv0 -tech SMP           Search tech mailing list for SMP
 EOF
     w3_global_usage
 }
@@ -40,12 +48,16 @@ w3_parse_option_hook () {
     opt="$1"
     optarg="$2"
     case "$opt" in
-	-mail)	setoptyn	SURFRAW_openbsd_mail		yes	;;
-	-mail=*) setoptyn	SURFRAW_openbsd_mail		$optarg	;;
-	-pr)	setoptyn	SURFRAW_openbsd_pr		yes	;;
-	-pr=*)	setoptyn	SURFRAW_openbsd_pr		$optarg	;;
-	-ps)	setoptyn	SURFRAW_openbsd_ports		yes	;;
-	-ps=*)	setoptyn	SURFRAW_openbsd_ports		$optarg	;;
+	-mail)		setoptyn	SURFRAW_openbsd_mail		yes	;;
+	-mail=*) 	setoptyn	SURFRAW_openbsd_mail		$optarg	;;
+	-pr)		setoptyn	SURFRAW_openbsd_pr		yes	;;
+	-pr=*)		setoptyn	SURFRAW_openbsd_pr		$optarg	;;
+	-ps)		setoptyn	SURFRAW_openbsd_ports		yes	;;
+	-ps=*)		setoptyn	SURFRAW_openbsd_ports		$optarg	;;
+	-misc)		setoptyn	SURFRAW_openbsd_mail_misc	yes	;;
+	-misc=*)	setoptyn	SURFRAW_openbsd_mail_misc 	$optarg	;;
+	-tech)		setoptyn	SURFRAW_openbsd_mail_tech 	yes	;;
+	-tech=*)	setoptyn	SURFRAW_openbsd_mail_tech 	$optarg	;;
 	*) return 1 ;;
     esac
     return 0
@@ -80,6 +92,22 @@ if ok SURFRAW_openbsd_mail; then
     fi
     exit $?
 fi
+if ok SURFRAW_openbsd_mail_misc; then
+    if test -z "$escaped_args"; then
+        w3_browse_url "http://marc.info/?l=openbsd-misc&r=1&w=2"
+    else
+	w3_browse_url "http://marc.info/?l=openbsd-misc&w=2&r=1&s=${escaped_args}&q=b"
+    fi
+    exit $?
+fi
+if ok SURFRAW_openbsd_mail_tech; then
+    if test -z "$escaped_args"; then
+        w3_browse_url "http://marc.info/?l=openbsd-tech&r=1&w=2"
+    else
+	w3_browse_url "http://marc.info/?l=openbsd-tech&w=2&r=1&s=${escaped_args}&q=b"
+    fi
+    exit $?
+fi
 if test -z "$escaped_args"; then
     w3_browse_url "http://www.openbsd.org/"
 else

-- 
surfraw -  a fast unix command line interface to WWW



More information about the Surfraw-commits mailing list