Commit 9f566c5a authored by Ian Beckwith's avatar Ian Beckwith

altavista, debcontents, excite, jake, scaleplus, slinuxdoc, sundocs,

    swhois, translate: fixed debcontents: changed SURFRAW_debian_* vars to
    SURFRAW_debcontents appwatch, ftpfind, ftpsearch, raging: removed, site
    gone. cddb, freedb, stockquote, woffle, surfraw.spec: added cvs Id tag.
parent 4ee05423
......@@ -50,10 +50,10 @@ Distribution:
For example:
$ surfraw
W -- Activate Surfraw defined web-browser
alioth -- Search Alioth (alioth.debian.org)
altavista -- Search the web using Altavista (www.altavista.com)
amazon -- Search the amazon.com bookstore
appwatch -- Search entries on Appwatch (www.appwatch.com)
ask -- Question the web using Ask Jeeves (www.ask.com)
austlii -- Search Australian Law docs (www.austlii.edu.au)
bbcnews -- Search BBC News (news.bbc.co.uk)
......@@ -73,16 +73,14 @@ filesearching -- Search files on filesearching (www.filesearching.com)
freebsd -- Search FreeBSD related information (www.freebsd.org)
freedb -- Search for cd track listings in FreeDB (www.freedb.org)
freshmeat -- Search Freshmeat (www.freshmeat.net)
ftpfind -- Search files on ftpfind (www.ftpfind.com)
ftpsearch -- Search files on ftpsearch (ftpsearch.lycos.com)
google -- Search the web using Google (www.google.com)
happypenguin -- Search the Linux Game Tome (www.happypenguin.org)
imdb -- Search the Internet Movie Database (www.imdb.com)
jake -- Search journal/databases in jake (jake.med.yale.edu)
leodict -- Search leo's German <-> English dictionary (dict.leo.org)
netbsd -- Search NetBSD related information (www.netbsd.org)
openbsd -- Search OpenBSD related information (www.openbsd.org)
pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov)
raging -- Search the web using Raging (www.raging.com)
rhyme -- Search for rhymes et al using Lycos Rhyme (rhyme.lycos.com)
scaleplus -- Search Australian Law using ScalePlus (scaleplus.law.gov.au)
scpan -- Search the Comprehensive Perl Archive Network (search.cpan.org)
......
This diff is collapsed.
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/alioth.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/altavista.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/amazon.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/appwatch.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/ask.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/austlii.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/britannica.1.gz
......@@ -18,8 +17,6 @@ usr/share/man/man1/surfraw.1.gz usr/share/man/man1/fast.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/filesearching.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/freebsd.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/freshmeat.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/ftpfind.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/ftpsearch.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/google.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/happypenguin.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/jake.1.gz
......@@ -27,7 +24,6 @@ usr/share/man/man1/surfraw.1.gz usr/share/man/man1/leodict.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/netbsd.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/openbsd.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/pubmed.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/raging.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/rhyme.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/scaleplus.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/scpan.1.gz
......
......@@ -3,7 +3,6 @@ bin_SCRIPTS = \
alioth \
altavista \
amazon \
appwatch \
ask \
austlii \
bbcnews \
......@@ -22,8 +21,6 @@ bin_SCRIPTS = \
filesearching \
freebsd \
freedb \
ftpfind \
ftpsearch \
freshmeat \
jake \
google \
......@@ -35,7 +32,6 @@ bin_SCRIPTS = \
netbsd \
openbsd \
pubmed \
raging \
rhyme \
slashdot \
sundocs \
......
......@@ -72,7 +72,7 @@ VERSION = @VERSION@
sr_graphical_browser = @sr_graphical_browser@
sr_text_browser = @sr_text_browser@
bin_SCRIPTS = alioth altavista amazon appwatch ask austlii bbcnews britannica cddb cite cnn currency debbugs debcontents deblists debpackages deja excite fast filesearching freebsd freedb ftpfind ftpsearch freshmeat jake google happypenguin imdb scpan slinuxdoc leodict netbsd openbsd pubmed raging rhyme slashdot sundocs sourceforge stockquote scaleplus sunsolve swhois thesaurus translate W webster wetandwild woffle xxx yahoo
bin_SCRIPTS = alioth altavista amazon ask austlii bbcnews britannica cddb cite cnn currency debbugs debcontents deblists debpackages deja excite fast filesearching freebsd freedb freshmeat jake google happypenguin imdb scpan slinuxdoc leodict netbsd openbsd pubmed rhyme slashdot sundocs sourceforge stockquote scaleplus sunsolve swhois thesaurus translate W webster wetandwild woffle xxx yahoo
sysconf_DATA = surfraw_elvi.list
......
......@@ -37,6 +37,5 @@ if test -z "$w3_args"; then
w3_browse_url "http://www.altavista.com/"
else
escaped_args=`w3_url_of_arg $w3_args`
# raging is altavista for now
w3_browse_url "http://ragingsearch.altavista.com/cgi-bin/query?FFF=off&wfmt=d&nbq=${SURFRAW_altavista_results}&q=${escaped_args}"
w3_browse_url "http://www.altavista.com/web/results/?nbq=${SURFRAW_altavista_results}&q=${escaped_args}"
fi
#!/bin/sh
# $Id$
# elvis: appwatch -- Search entries on Appwatch (www.appwatch.com)
# version 0.1 by Ross Campbell rcampbel3@yahoo.com 8/1/2000
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw search entries on Appwatch (www.appwatch.com)
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "http://www.appwatch.com/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://www.appwatch.com/Linux/Users/find?q=${escaped_args}"
fi
#!/bin/sh
# $Id$
# elvis: cddb -- Search for cd track listings in CDDB (www.gracenote.com)
# ianb@nessie.mcc.ac.uk 20030124
......
......@@ -4,9 +4,9 @@
. surfraw || exit 1
w3_config_hook () {
def SURFRAW_debian_arch i386
def SURFRAW_debian_distro stable
def SURFRAW_debian_search cgi-bin/search_contents.pl
def SURFRAW_debcontents_arch i386
def SURFRAW_debcontents_distro stable
def SURFRAW_debcontents_search cgi-bin/search_contents.pl
}
w3_usage_hook () {
......@@ -22,14 +22,14 @@ Local options:
sparc | sparc
powerpc | PowerPC
arm | ARM
Default: $SURFRAW_debian_arch
Environment: SURFRAW_debian_arch
Default: $SURFRAW_debcontents_arch
Environment: SURFRAW_debcontents_arch
-distro= Specific distribution
stable | Stable
testing | Testing
unstable | Unstable
Default: $SURFRAW_debian_distro
Environment: SURFRAW_debian_distro
Default: $SURFRAW_debcontents_distro
Environment: SURFRAW_debcontents_distro
EOF
w3_global_usage
}
......@@ -38,8 +38,8 @@ w3_parse_option_hook () {
opt="$1"
optarg="$2"
case "$opt" in
-arch=*) setopt SURFRAW_debian_arch $optarg ;;
-distro=*) setopt SURFRAW_debian_distro $optarg ;;
-arch=*) setopt SURFRAW_debcontents_arch $optarg ;;
-distro=*) setopt SURFRAW_debcontents_distro $optarg ;;
*) return 1 ;;
esac
return 0
......@@ -52,5 +52,5 @@ if test -z "$w3_args"; then
w3_browse_url "http://packages.debian.org/#search_contents"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://packages.debian.org/${SURFRAW_debian_search}?word=${escaped_args}&case=insensitive&version=${SURFRAW_debian_distro}&arch=${SURFRAW_debian_arch}&directories=yes"
w3_browse_url "http://packages.debian.org/${SURFRAW_debcontents_search}?word=${escaped_args}&case=insensitive&version=${SURFRAW_debcontents_distro}&arch=${SURFRAW_debcontents_arch}&searchmode=searchfilesanddirs"
fi
......@@ -19,5 +19,5 @@ if test -z "$w3_args"; then
w3_browse_url "http://www.excite.com/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://www.excite.com/search.gw?search=${escaped_args}"
w3_browse_url "http://msxml.excite.com/_1_Y5CUB602ZUH3__info.xcite/dog/results?otmpl=dog/webresults.htm&qcat=web&foo=bar&qk=20&fs=infospace_excite_search&stype=web&qkw=${escaped_args}&top=1&start=&ver=31756"
fi
#!/bin/sh
# $Id$
# elvis: freedb -- Search for cd track listings in FreeDB (www.freedb.org)
# ianb@nessie.mcc.ac.uk 20030129
# notes at end of script
......
#!/bin/sh
# $Id$
# elvis: ftpfind -- Search files on ftpfind (www.ftpfind.com)
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw search files on www.ftpfind.com (www.ftpfind.com)
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "http://"www.ftpfind.com/index.php?adv=true""
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://www.ftpfind.com/search.php?query=${escaped_args}&method=iss"
fi
#!/bin/sh
# $Id$
# elvis: ftpsearch -- Search files on ftpsearch (ftpsearch.lycos.com)
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw search files on ftpsearch.lycos.com (ftpsearch.lycos.com)
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "http://"ftpsearch.lycos.com/static/advanced_search.asp""
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://ftpsearch.lycos.com/swadv/AdvResults.asp?form=advanced&query=${escaped_args}&doit=Search&type=Case+insensitive+substring+search&offset=0&hits=15&matches=&hitsprmatch=&limdom=&limpath=&limsize1=&limsize2=&limtime1=&limtime2=&f1=Count&f2=Type&f3=Size&f4=Date&f5=Host&f6=Path&header=none&sort=none&trlen=20"
fi
#!/bin/sh
# $Id$
# elvis: jake -- Search journal/databases in jake (jake.med.yale.edu)
# daniel.chudnov@yale.edu
. surfraw || exit 1
w3_config_hook () {
def SURFRAW_jake_method title
def SURFRAW_jake_spage ""
def SURFRAW_jake_epage ""
}
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [journal-or-db-name|issn|jakeid]
Usage: $w3_argv0 [options] [journal-or-db-name|issn]
Description:
Surfraw jake for journal/database info and article links
Example:
\$ jake proc nat acad sci
\$ jake 0362-8841
\$ jake -method=jakeid 2004
\$ jake -format=xml mo jones
\$ jake -volume=141 -issue=10 -page=1089 -year=1999 acta neurochir
\$ jake -volume=141 -issue=10 -spage=1089 -epage=1105 -year=1999 acta neurochir
Local options:
-format=xml return data as text/xml
-method= search type
title | (default)
issn | search by issn
jakeid | search by jakeid
-volume=[volume] look for this volume
-issue=[issue] look for this issue
-page=[page] look for this page
-year=[year] look for this year
-method= search type
title | (default)
issn search by issn
-volume=[volume] look for this volume
-issue=[issue] look for this issue
-spage=[page] start page
-epage=[page] end page
-year=[year] look for this year
EOF
w3_global_usage
w3_global_usage
}
w3_parse_option_hook () {
opt="$1"
optarg="$2"
case "$opt" in
-method=*) setopt SURFRAW_jake_method $optarg ;;
-method=*) setopt SURFRAW_jake_method $optarg ;;
-format=*) setopt SURFRAW_jake_format $optarg ;;
-volume=*) setopt SURFRAW_jake_volume $optarg ;;
-issue=*) setopt SURFRAW_jake_issue $optarg ;;
-page=*) setopt SURFRAW_jake_page $optarg ;;
-spage=*) setopt SURFRAW_jake_spage $optarg ;;
-epage=*) setopt SURFRAW_jake_epage $optarg ;;
-year=*) setopt SURFRAW_jake_year $optarg ;;
*) return 1 ;;
esac
......@@ -55,5 +57,5 @@ if test -z "$w3_args"; then
w3_browse_url "http://jake.med.yale.edu/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://jake.med.yale.edu/?${SURFRAW_jake_method}=${escaped_args}&format=${SURFRAW_jake_format}&volume=${SURFRAW_jake_volume}&issue=${SURFRAW_jake_issue}&page=${SURFRAW_jake_page}&year=${SURFRAW_jake_year}"
w3_browse_url "http://jake.med.yale.edu/search?sid=jake-db.org%3Ajake&${SURFRAW_jake_method}=${escaped_args}&volume=${SURFRAW_jake_volume}&issue=${SURFRAW_jake_issue}&spage=${SURFRAW_jake_spage}&epage=${SURFRAW_jake_epage}&date=${SURFRAW_jake_year}"
fi
#!/bin/sh
# $Id$
# elvis: raging -- Search the web using Raging (www.raging.com)
. surfraw || exit 1
w3_config_hook () {
def SURFRAW_raging_results $SURFRAW_results
}
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw search the web using Raging (www.raging.com)
Local options:
-results=NUM Number of search results returned
Default: $SURFRAW_raging_results
Environment: SURFRAW_raging_results
EOF
w3_global_usage
}
w3_parse_option_hook () {
opt="$1"
optarg="$2"
case "$opt" in
-results=*) setopt SURFRAW_raging_results $optarg ;;
*) return 1 ;;
esac
return 0
}
w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "http://www.raging.com/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://ragingsearch.altavista.com/cgi-bin/query?FFF=off&wfmt=d&nbq=${SURFRAW_raging_results}&q=${escaped_args}"
fi
......@@ -38,5 +38,5 @@ if test -z "$w3_args"; then
w3_browse_url "http://scaleplus.law.gov.au/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://scaleplus.law.gov.au/cgi-bin/topicSrch.pl?Action=Search&SearchPage=%2FWelcome97.html&ResultTemplate=scaleresults.htm&ViewTemplate=scaleview.htm&ResultMaxDocs=${SURFRAW_scaleplus_results}&SEARCH.y=0&SEARCH.x=0&querytext=${escaped_args}&category=CL&category=CC&category=SL&category=SC&category=OT&category=HD"
w3_browse_url "http://scaleplus.law.gov.au/cgi-bin/topicSrch.pl?Action=Search&SearchPage=%2FWelcome97.html&ResultTemplate=scaleresults.hts&ViewTemplate=scaleview.hts&ResultMaxDocs=${SURFRAW_scaleplus_results}&querytext=${escaped_args}&category=CL&category=CC&category=SL&category=SC&category=OT&category=HD"
fi
......@@ -17,8 +17,8 @@ w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "http://www.linuxdoc.com/"
w3_browse_url "http://www.tldp.org/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://www.linuxdoc.org/cgi-bin/ldpsrch.cgi?db=0&rpt=40?&srch=${escaped_args}"
w3_browse_url "http://www.tldp.org/cgi-bin/ldpsrch.cgi?svr=&words=${escaped_args}"
fi
#!/bin/sh
# $Id$
# elvis: stockquote -- Get a single stock quote (multiple providers)
. surfraw || exit 1
......
......@@ -20,5 +20,5 @@ if test -z "$w3_args"; then
w3_browse_url "http://docs.sun.com/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://docs.sun.com/query.html?Ab2Lang=C&Ab2Enc=iso-8859-i&qt=${escaped_args}"
w3_browse_url "http://docs.sun.com/?q=${escaped_args}"
fi
......@@ -2,7 +2,6 @@ W -- Activate Surfraw defined web-browser
alioth -- Search Alioth (alioth.debian.org)
altavista -- Search the web using Altavista (www.altavista.com)
amazon -- Search the amazon.com bookstore
appwatch -- Search entries on Appwatch (www.appwatch.com)
ask -- Question the web using Ask Jeeves (www.ask.com)
austlii -- Search Australian Law docs (www.austlii.edu.au)
bbcnews -- Search BBC News (news.bbc.co.uk)
......@@ -22,8 +21,6 @@ filesearching -- Search files on filesearching (www.filesearching.com)
freebsd -- Search FreeBSD related information (www.freebsd.org)
freedb -- Search for cd track listings in FreeDB (www.freedb.org)
freshmeat -- Search Freshmeat (www.freshmeat.net)
ftpfind -- Search files on ftpfind (www.ftpfind.com)
ftpsearch -- Search files on ftpsearch (ftpsearch.lycos.com)
google -- Search the web using Google (www.google.com)
happypenguin -- Search the Linux Game Tome (www.happypenguin.org)
imdb -- Search the Internet Movie Database (www.imdb.com)
......@@ -32,7 +29,6 @@ leodict -- Search leo's German <-> English dictionary (dict.leo.org)
netbsd -- Search NetBSD related information (www.netbsd.org)
openbsd -- Search OpenBSD related information (www.openbsd.org)
pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov)
raging -- Search the web using Raging (www.raging.com)
rhyme -- Search for rhymes et al using Lycos Rhyme (rhyme.lycos.com)
scaleplus -- Search Australian Law using ScalePlus (scaleplus.law.gov.au)
scpan -- Search the Comprehensive Perl Archive Network (search.cpan.org)
......
......@@ -16,8 +16,8 @@ w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "http://www.geektools.com/cgi-bin/proxy.cgi"
w3_browse_url "http://www.geektools.com/whois.php"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://www.geektools.com/cgi-bin/proxy.cgi?query=${escaped_args}&targetnic=auto&btnGo=Whois+%BB"
w3_browse_url "http://www.geektools.com/whois.php?query=${escaped_args}"
fi
......@@ -83,21 +83,17 @@ w3_parse_option_hook () {
w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
test -z "$w3_args" || escaped_args=`w3_url_of_arg $w3_args`
case $SURFRAW_translate_provider in
babelfish | raging)
case $SURFRAW_translate_provider in raging) r=raging/ ;; *) r="";; esac
if test -z "$escaped_args"; then
w3_browse_url "http://babelfish.altavista.com/${r}translate.dyn"
else
case "$escaped_args" in
http*) w3_browse_url "http://babelfish.altavista.com/${r}translate.dyn?doit=done&BabelFishFrontPage=yes&bblType=url&url=${escaped_args}&lp=${SURFRAW_translate_from}_${SURFRAW_translate_to}"
if test -z "$w3_args"
then
w3_browse_url "http://babelfish.altavista.com/"
else
escaped_args=`w3_url_of_arg $w3_args`
case "$escaped_args" in
http*) w3_browse_url "http://babelfish.altavista.com/babelfish/urltrurl?tt=url&url=${escaped_args}&lp=${SURFRAW_translate_from}_${SURFRAW_translate_to}"
;;
*) w3_browse_url "http://babelfish.altavista.com/${r}translate.dyn?doit=done&BabelFishFrontPage=yes&bblType=urltext&urltext=${escaped_args}&lp=${SURFRAW_translate_from}_${SURFRAW_translate_to}"
;;
esac
fi
;;
*) err "unknown provider ${SURFRAW_translate_provider}"
esac
*) w3_browse_url "http://babelfish.altavista.com/babelfish/tr?doit=done&tt=urltext&intl=1&urltext=${escaped_args}&lp=${SURFRAW_translate_from}_${SURFRAW_translate_to}"
;;
esac
fi
exit $?
#!/bin/sh
# $Id$
# elvis: woffle -- Search the web using Woffle (localhost:8080)
. surfraw || exit 1
......
# $Id$
%define name surfraw
%define version @VERSION@
%define release 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment