From ianb at erislabs.net Mon Oct 10 02:24:38 2011 From: ianb at erislabs.net (Ian Beckwith) Date: Mon, 10 Oct 2011 02:24:38 +0000 Subject: [Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-214-g977c5e8 Message-ID: The following commit has been merged in the master branch: commit b28abebe657b02d1e2b979cc2e899b6e46c90a79 Author: Kyle Isom Date: Wed Sep 28 19:53:49 2011 +0300 New elvi: wolfram (kyle isom ) diff --git a/AUTHORS b/AUTHORS index 6453da7..5846c06 100644 --- a/AUTHORS +++ b/AUTHORS @@ -114,7 +114,7 @@ Jakob elvi: pasearch Kyle Isom - elvi: cablesearch, duckduckgo, openports + elvi: cablesearch, duckduckgo, openports, wolfram plus fixes. Jason Ryan diff --git a/ChangeLog b/ChangeLog index 6b4025f..9703f10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-09-09 Kyle Isom + * New elvi: wolfram - query Wolfram Alpha + * Author: Kyle Isom + * Added test for wolfram. + 2011-08-09 Ian Beckwith * New elvi: priberam - search Portuguese dictionary. diff --git a/README b/README index 79e79ea..feca23a 100644 --- a/README +++ b/README @@ -261,6 +261,7 @@ webster -- Look up word in Merriam-Webster's Dictionary (www.m-w.com) wetandwild -- Real time weather information (many sources) wikipedia -- Search the free encyclopedia wikipedia woffle -- Search the web using Woffle (localhost:8080) +wolfram -- Ask questions of the computational knowledge engine worldwidescience -- Search for science with www.worldwidescience.org yahoo -- Search Yahoo categories (www.yahoo.com) yandex -- Search the web using Yandex (yandex.ru) diff --git a/elvi/Makefile.am b/elvi/Makefile.am index 6182131..f79c20c 100644 --- a/elvi/Makefile.am +++ b/elvi/Makefile.am @@ -109,6 +109,7 @@ dist_elvi_SCRIPTS = \ wetandwild \ wikipedia \ woffle \ + wolfram \ worldwidescience \ yahoo \ yandex \ diff --git a/elvi/wolfram b/elvi/wolfram new file mode 100755 index 0000000..eef6290 --- /dev/null +++ b/elvi/wolfram @@ -0,0 +1,41 @@ +#!/bin/sh +# elvis: wolfram -- Ask questions of the computational knowledge engine +# coder at kyleisom.net 20110105 +. surfraw || exit 1 + +w3_config_hook () { + def SURFRAW_wolfram_results "$SURFRAW_results" + def SURFRAW_wolfram_base_url "www.wolframalpha.com/" + def SURFRAW_wolfram_search search + def SURFRAW_wolfram_params "input/?i=" +} + +w3_usage_hook () { + cat < The following commit has been merged in the master branch: commit 73c550f5843ddc44cd3fc125a2231486d8377308 Author: Ian Beckwith Date: Mon Oct 10 02:43:20 2011 +0100 new elvi: pin by Jason Ryan diff --git a/AUTHORS b/AUTHORS index 5846c06..896097d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -118,7 +118,7 @@ Kyle Isom plus fixes. Jason Ryan - elvi: archwiki, deli, stack + elvi: archwiki, deli, stack, pin Sara Fauzia archpkg fix. diff --git a/ChangeLog b/ChangeLog index 9703f10..58e4a4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2011-09-09 Kyle Isom +2011-10-10 Jason Ryan + + * New elvi: pin (search pinboard.in). + +2011-09-09 Kyle Isom + * New elvi: wolfram - query Wolfram Alpha * Author: Kyle Isom * Added test for wolfram. diff --git a/README b/README index feca23a..0d0125a 100644 --- a/README +++ b/README @@ -229,6 +229,7 @@ openports -- search openports for OpenBSD packages opensearch -- Search an OpenSearch-enabled website pasearch -- Search the unofficial Penny Arcade archives (pipefour.org/pa) pgpkeys -- Search the PGP key database +pin -- Search Pinboard bookmarks (http://pinboard.in) piratebay -- Search thepiratebay.org for torrents priberam -- Look up word in Priberam online dictionary (www.priberam.pt/dlpo) pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov) diff --git a/elvi/Makefile.am b/elvi/Makefile.am index f79c20c..717ce53 100644 --- a/elvi/Makefile.am +++ b/elvi/Makefile.am @@ -76,6 +76,7 @@ dist_elvi_SCRIPTS = \ openports \ opensearch \ pasearch \ + pin \ piratebay \ pgpkeys \ priberam \ diff --git a/elvi/pin b/elvi/pin new file mode 100755 index 0000000..28edd90 --- /dev/null +++ b/elvi/pin @@ -0,0 +1,93 @@ +#!/bin/sh +# elvis: pin -- Search Pinboard bookmarks (http://pinboard.in) +# author: jason ryan ? http://jasonwryan.com + +. surfraw || exit 1 + +w3_config_hook () { +def SURFRAW_pinboard_tags "$SURFRAW_tags" +def SURFRAW_pinboard_user "$SURFRAW_user" +def SURFRAW_pinboard_new 0 +def SURFRAW_pinboard_popular 0 +} + +w3_usage_hook () { + cat < The following commit has been merged in the master branch: commit 977c5e815b8538a871cc1da866a50d16da1f736d Author: Ian Beckwith Date: Mon Oct 10 03:23:25 2011 +0100 new elvi: f5 and cisco, by Shain Singh diff --git a/.gitignore b/.gitignore index 90d55e9..b56e5ab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*~ Makefile build-stamp config.log diff --git a/AUTHORS b/AUTHORS index 896097d..02b33d9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -126,6 +126,9 @@ Sara Fauzia Paulo Almeida elvi: priberam +Shain Singh + elvi: cisco, f5 + THANKS TO Brian Nelson diff --git a/ChangeLog b/ChangeLog index 58e4a4a..d22d4ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-10-10 Shain Singh + + * New elvi: f5, cisco + 2011-10-10 Jason Ryan * New elvi: pin (search pinboard.in). diff --git a/README b/README index 0d0125a..00a4d5c 100644 --- a/README +++ b/README @@ -172,6 +172,7 @@ bugmenot -- Bypass compulsory web registration with bugmenot.com bugzilla -- Search for bugs on Bugzilla bugtrackers cablesearch -- search openports for OpenBSD packages cia -- Search CIA documents at www.cia.gov +cisco -- Search Cisco documentation (www.cisco.com) cite -- Search computer science papers (citeseerx.ist.psu.edu) cliki -- Search the common lisp wiki cnn -- Search on CNN (cnn.com) @@ -198,6 +199,7 @@ duckduckgo -- Securely search the web using duckduckgo (www.duckduckgo.com) ebay -- Search the Ebay auction site etym -- Look up word origins at www.etymonline.com excite -- Search on Excite (www.excite.com) +f5 -- Search F5 related information (www.f5.com) finkpkg -- Search Fink packages (pdb.finkproject.org) foldoc -- The Free On-Line Dictionary Of Computing (foldoc.org) freebsd -- Search FreeBSD related information (www.freebsd.org) diff --git a/elvi/Makefile.am b/elvi/Makefile.am index 717ce53..aa53291 100644 --- a/elvi/Makefile.am +++ b/elvi/Makefile.am @@ -20,6 +20,7 @@ dist_elvi_SCRIPTS = \ bugzilla \ cablesearch \ cia \ + cisco \ cite \ cliki \ cnn \ @@ -46,6 +47,7 @@ dist_elvi_SCRIPTS = \ ebay \ etym \ excite \ + f5 \ foldoc \ finkpkg \ freebsd \ diff --git a/elvi/sunonesearch b/elvi/cisco similarity index 52% copy from elvi/sunonesearch copy to elvi/cisco index 267b938..17d03fa 100755 --- a/elvi/sunonesearch +++ b/elvi/cisco @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# elvis: sunonesearch -- Search Sun One Search (onesearch.sun.com) +# elvis: cisco -- Search Cisco documentation (www.cisco.com) . surfraw || exit 1 @@ -8,7 +8,7 @@ w3_usage_hook () { cat < The following commit has been merged in the master branch: commit 8b80a8a424085aca817695bf9114055578fd20b8 Author: Ian Beckwith Date: Mon Oct 10 03:54:47 2011 +0100 surfraw.IN: test_elvi(): tweak sed regex diff --git a/ChangeLog b/ChangeLog index d22d4ef..994c3ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-10-10 Ian Beckwith + + * surfraw.IN: test_elvi(): tweak sed regex + * add tests for f5, cisco and pin. + 2011-10-10 Shain Singh * New elvi: f5, cisco diff --git a/surfraw.IN b/surfraw.IN index dedf369..945ca7e 100755 --- a/surfraw.IN +++ b/surfraw.IN @@ -317,7 +317,7 @@ w3_parse_option_hook () { list_elvi() { local dir="$1" - sed -n 's/^.*elvis: \(.*\)$/\1/p' $(find "$dir" ! -type d ! -type l ! -name '*~' | sort) + sed -n 's/^.*elvis:[ ]\+\(.*\)$/\1/p' $(find "$dir" ! -type d ! -type l ! -name '*~' | sort) for script in $(find "$dir" ! -type d -type l | sort) ; do printf '%-16s--> %s\n' $(basename "$script") $(basename $(readlink "${script}")) done -- surfraw - a fast unix command line interface to WWW