Commit f7aef660 authored by Ian Beckwith's avatar Ian Beckwith

deleted debian/rules.save (old rules backup)

britannica: gone subscription-only
swhois: all whois sites I can find have anti-harvester features that stop
    us using them.
wikipedia - added missing quotes (could've sworn I did this already)
cnn - updated url
translate - corrected docs
Moved debian/surfraw.links to links.IN in top dir, now uses autoconf and is
    not debian-specific
Added install-data-hook to create links
fixed ELVIDIR quoting
added elvi/surfraw_elvi to CLEANFILES & removed it from cvs, as it is
    generated on build.
freedb, happypenguin, jake, rhyme, scaleplus, sharereactor thesaurus,
    webster, deblists.
Added note to HACKING explaining how to disable ifs quoting
parent 829c0ec7
......@@ -79,6 +79,15 @@ Or... How to Eat The CHEESE
This ends the regular initialisation code.
7.5)Note that surfraw now supports quoting arguments, eg with:
sr google foo "bar baz" bam
it adds the quotes back.
Not all sites support arguments in double quotes. If you want to
disable it for your elvis, add
SURFRAW_quote_ifs=0
in between the calls to w3_config and w3_parse_args.
8) What happens next depends on the type of evil we are dealing
with. In the Peoples' Front Against Forum Stealing Dogs case, we have
previously performed a search on the http://www.pfafsd.org search
......@@ -122,7 +131,7 @@ Or... How to Eat The CHEESE
3: add elviname to the bin_SCRIPTS list in elvi/Makefile.am
4: add a link for the manpage in debian/surfraw.links
4: add a link for the manpage in links.IN
5: rm elvi/surfraw_elvi.list
......
......@@ -7,10 +7,10 @@ devel_extra = banner prebuild
man_MANS = surfraw-update-path.1 surfraw.1 elvi.1sr
EXTRA_DIST = surfraw.lsm.in surfraw.IN surfraw-update-path.IN\
surfraw.spec.in aclocal.m4 HACKING Makefile.include \
surfraw.1.in elvi.1sr.in W surfraw.bookmarks \
surfraw.1.in elvi.1sr.in W surfraw.bookmarks links.IN \
$(devel_extra)
CLEANFILES = surfraw surfraw-update-path surfraw-update-path.1 surfraw.spec surfraw.lsm \
surfraw.1 elvi.1sr
surfraw.1 elvi.1sr links
surfraw: surfraw.IN
......@@ -20,9 +20,16 @@ surfraw-update-path.1: surfraw-update-path
-rm -f $@
pod2man $< > $@
links: links.IN
include $(top_srcdir)/Makefile.include
install-data-hook: links
while read target link ;\
do \
ln -sf $$target $(DESTDIR)/$$link ;\
done < links
#htdocs: index.html
# scp index.html surfraw.sourceforge.net:/home/groups/s/su/surfraw/htdocs/index.html
#README: index.html
......
......@@ -111,11 +111,11 @@ devel_extra = banner prebuild
man_MANS = surfraw-update-path.1 surfraw.1 elvi.1sr
EXTRA_DIST = surfraw.lsm.in surfraw.IN surfraw-update-path.IN\
surfraw.spec.in aclocal.m4 HACKING Makefile.include \
surfraw.1.in elvi.1sr.in W surfraw.bookmarks \
surfraw.1.in elvi.1sr.in W surfraw.bookmarks links.IN \
$(devel_extra)
CLEANFILES = surfraw surfraw-update-path surfraw-update-path.1 surfraw.spec surfraw.lsm \
surfraw.1 elvi.1sr
surfraw.1 elvi.1sr links
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
......@@ -558,6 +558,8 @@ info: info-recursive
info-am:
install-data-am: install-man
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
install-exec-am: install-binSCRIPTS install-sysconfDATA
......@@ -620,9 +622,12 @@ surfraw-update-path.1: surfraw-update-path
-rm -f $@
pod2man $< > $@
links: links.IN
%: %.IN
-rm -f $@ $@.tmp
sed 's,@bindir\@,${bindir},g; \
s,@mandir\@,${mandir},g; \
s,@VERSION\@,${VERSION},g; \
s,@prefix\@,${prefix},g; \
s,@ELVIDIR\@,${ELVIDIR},g; \
......@@ -630,6 +635,12 @@ surfraw-update-path.1: surfraw-update-path
chmod +x $@.tmp
mv $@.tmp $@
install-data-hook: links
while read target link ;\
do \
ln -sf $$target $(DESTDIR)/$$link ;\
done < links
#htdocs: index.html
# scp index.html surfraw.sourceforge.net:/home/groups/s/su/surfraw/htdocs/index.html
#README: index.html
......
......@@ -3,6 +3,7 @@
%: %.IN
-rm -f $@ $@.tmp
sed 's,@bindir\@,${bindir},g; \
s,@mandir\@,${mandir},g; \
s,@VERSION\@,${VERSION},g; \
s,@prefix\@,${prefix},g; \
s,@ELVIDIR\@,${ELVIDIR},g; \
......
......@@ -46,6 +46,25 @@ relevant config files.
* configure.in: changed to new AM_INIT_AUTOMAKE format,
specified minimum automake version 1.7
* updated surfraw.lsm with new URLs
* deleted debian/rules.save (old rules backup)
* Removed elvi:
+ britannica: gone subscription-only
+ swhois: all whois sites I can find have anti-harvester features
that stop us using them.
* Fixed elvi:
+ wikipedia - added missing quotes (could've sworn I did this already)
+ cnn - updated url
+ translate - corrected docs
* Moved debian/surfraw.links to links.IN in top dir, now uses autoconf
and is not debian-specific
* Makefile.am: Added install-data-hook to create links
* configure.in, elvi/Makefile.in: fixed ELVIDIR quoting
* added elvi/surfraw_elvi to CLEANFILES & removed it from cvs, as it is
generated on build.
* disabled ifs quoting in elvi that don't like it:
freedb, happypenguin, jake, rhyme, scaleplus,
sharereactor, thesaurus, webster, deblists.
* Added note to HACKING explaining how to disable ifs quoting
Tue Dec 23 03:19:58 GMT 2003 - surfraw 2.0
......
......@@ -1241,6 +1241,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
am__api_version="1.7"
......@@ -1645,7 +1646,7 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
ELVIDIR="${prefix}/lib/surfraw"
ELVIDIR="\$(libdir)/surfraw"
# Check whether --with-elvidir or --without-elvidir was given.
......
......@@ -4,12 +4,13 @@ dnl Process this file with autoconf to produce a configure script.
dnl This is the only place where the package version appears
AC_INIT(surfraw, 2.0.1)
AC_PREREQ(2.54)
AC_CONFIG_SRCDIR([surfraw.IN])
dnl minimum automake version, not surfraw version
AM_INIT_AUTOMAKE([1.7])
ELVIDIR="${prefix}/lib/surfraw"
ELVIDIR="\$(libdir)/surfraw"
AC_ARG_WITH([elvidir],
[ --with-elvidir=ELVIDIR specify location of elvi],
......
......@@ -6,5 +6,6 @@ CLEANFILES = templates
templates: templates.IN
EXTRA_DIST=changelog config control copyright docs linda.overrides postinst \
prerm rules surfraw.dirs surfraw.links surfraw.links templates.IN
prerm rules surfraw.dirs templates.IN
include $(top_srcdir)/Makefile.include
......@@ -108,7 +108,7 @@ noinst_DATA = templates
CLEANFILES = templates
EXTRA_DIST = changelog config control copyright docs linda.overrides postinst \
prerm rules surfraw.dirs surfraw.links surfraw.links templates.IN
prerm rules surfraw.dirs templates.IN
subdir = debian
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
......@@ -256,6 +256,7 @@ templates: templates.IN
%: %.IN
-rm -f $@ $@.tmp
sed 's,@bindir\@,${bindir},g; \
s,@mandir\@,${mandir},g; \
s,@VERSION\@,${VERSION},g; \
s,@prefix\@,${prefix},g; \
s,@ELVIDIR\@,${ELVIDIR},g; \
......
......@@ -24,8 +24,27 @@ surfraw (2.0.1-1) unstable; urgency=low
* configure.in: changed to new AM_INIT_AUTOMAKE format,
specified minimum automake version 1.7
* updated surfraw.lsm with new URLs
-- Ian Beckwith <ianb@nessie.mcc.ac.uk> Thu, 5 Feb 2004 00:40:22 +0000
* deleted debian/rules.save (old rules backup)
* Removed elvi:
+ britannica: gone subscription-only
+ swhois: all whois sites I can find have anti-harvester features
that stop us using them.
* Fixed elvi:
+ wikipedia - added missing quotes (could've sworn I did this already)
+ cnn - updated url
+ translate - corrected docs
* Moved debian/surfraw.links to links.IN in top dir, now uses autoconf
and is not debian-specific
* Makefile.am: Added install-data-hook to create links
* configure.in, elvi/Makefile.in: fixed ELVIDIR quoting
* added elvi/surfraw_elvi to CLEANFILES & removed it from cvs, as it is
generated on build.
* disabled ifs quoting in elvi that don't like it:
freedb, happypenguin, jake, rhyme, scaleplus, sharereactor
thesaurus, webster, deblists.
* Added note to HACKING explaining how to disable ifs quoting
-- Ian Beckwith <ianb@nessie.mcc.ac.uk> Thu, 5 Feb 2004 23:11:54 +0000
surfraw (2.0-1) unstable; urgency=low
......
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=3
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr -sysconfdir=/etc --mandir=\$${prefix}/share/man
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
$(MAKE)
#/usr/bin/docbook-to-man debian/surfraw.sgml > surfraw.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-1000 1000MAKE) distclean
-test -r /usr/share/misc/config.sub && \
-cp -f /usr/share/misc/config.sub config.sub
-test -r /usr/share/misc/config.guess && \
-cp -f /usr/share/misc/config.guess config.guess
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/surfraw.
$(MAKE) install prefix=$(CURDIR)/debian/surfraw/usr
$(MAKE) install prefix=`pwd`/debian/surfraw/usr
sysconfdir=`pwd`/debian/surfraw/etc
mv `pwd/`debian/surfraw/usr/bin/translate
`pwd`/debian/surfraw/usr/bin/stranslate
mv `pwd`/debian/surfraw/usr/bin/linuxdoc
`pwd`/debian/surfraw/usr/bin/slinuxdoc
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
# dh_installexamples
# dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
dh_installman
# dh_installinfo
# dh_undocumented
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
usr/bin/surfraw usr/bin/sr
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/sr.1.gz
usr/share/man/man1/surfraw.1.gz usr/share/man/man1/W.1.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/alioth.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/altavista.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/amazon.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/ask.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/austlii.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/bbcnews.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/britannica.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/cddb.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/cite.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/cnn.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/currency.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/debbugs.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/debcontents.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/deblists.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/debpackages.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/deja.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/ebay.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/excite.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/fast.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/filesearching.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/freebsd.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/freedb.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/freshmeat.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/google.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/happypenguin.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/imdb.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/jake.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/leodict.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/netbsd.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/openbsd.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/pgpkeys.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/pubmed.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/rfc.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/rhyme.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/scaleplus.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/scpan.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/sharereactor.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/slashdot.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/slinuxdoc.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/sourceforge.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/stockquote.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/sundocs.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/sunsolve.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/swhois.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/thesaurus.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/translate.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/webster.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/wetandwild.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/wikipedia.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/woffle.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/xxx.1sr.gz
usr/share/man/man1/elvi.1sr.gz usr/share/man/man1/yahoo.1sr.gz
# $Id$
elvidir="@ELVIDIR@"
elvidir=$(ELVIDIR)
elvi_SCRIPTS = \
alioth \
altavista \
......@@ -7,7 +8,6 @@ elvi_SCRIPTS = \
ask \
austlii \
bbcnews \
britannica \
cddb \
cite \
cnn \
......@@ -17,7 +17,7 @@ elvi_SCRIPTS = \
deblists \
debpackages \
deja \
ebay \
ebay \
excite \
fast \
filesearching \
......@@ -33,18 +33,17 @@ elvi_SCRIPTS = \
leodict \
netbsd \
openbsd \
pgpkeys \
pgpkeys \
pubmed \
rfc \
rhyme \
sharereactor \
sharereactor \
slashdot \
sundocs \
sourceforge \
stockquote \
scaleplus \
sunsolve \
swhois \
thesaurus \
translate \
webster \
......@@ -57,5 +56,8 @@ sysconf_DATA = surfraw_elvi.list
EXTRA_DIST = $(elvi_SCRIPTS)
CLEANFILES = surfraw_elvi.list
surfraw_elvi.list: $(elvi_SCRIPTS)
cat $(elvi_SCRIPTS)|egrep '^#.*elvis:'|sed 's/^.*elvis: *//'|sort > $@
......@@ -101,7 +101,8 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
# $Id$
elvidir = "@ELVIDIR@"
elvidir = $(ELVIDIR)
elvi_SCRIPTS = \
alioth \
altavista \
......@@ -109,7 +110,6 @@ elvi_SCRIPTS = \
ask \
austlii \
bbcnews \
britannica \
cddb \
cite \
cnn \
......@@ -119,7 +119,7 @@ elvi_SCRIPTS = \
deblists \
debpackages \
deja \
ebay \
ebay \
excite \
fast \
filesearching \
......@@ -135,18 +135,17 @@ elvi_SCRIPTS = \
leodict \
netbsd \
openbsd \
pgpkeys \
pgpkeys \
pubmed \
rfc \
rhyme \
sharereactor \
sharereactor \
slashdot \
sundocs \
sourceforge \
stockquote \
scaleplus \
sunsolve \
swhois \
thesaurus \
translate \
webster \
......@@ -159,6 +158,8 @@ elvi_SCRIPTS = \
sysconf_DATA = surfraw_elvi.list
EXTRA_DIST = $(elvi_SCRIPTS)
CLEANFILES = surfraw_elvi.list
subdir = elvi
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
......@@ -277,6 +278,7 @@ install-strip:
mostlyclean-generic:
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
......
#!/bin/sh
# $Id$
# elvis: britannica -- Look up word in Encyclopedia Britannica (www.britannica.com)
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Look up word in the Encyclopedia Britannica (www.britannica.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.britannica.com/""
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://search.britannica.com/search?query=${escaped_args}"
fi
......@@ -2,6 +2,7 @@
# $Id$
# elvis: cnn -- Search on CNN (cnn.com)
# version 0.1 by Ross Campbell rcampbel3@yahoo.com
# version 0.2 updated url
. surfraw || exit 1
w3_usage_hook () {
......@@ -20,5 +21,5 @@ if test -z "$w3_args"; then
w3_browse_url "http://cnn.com/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://search.cnn.com/query.html?sites=CNN&qc=&col=cnni&qm=0&st=1&nh=20&lk=1&rf=1&look=&key=&venue=all&keyword=&qp=&comefrom=izcb-search&isp=zcb&search=0&qt=${escaped_args}"
w3_browse_url "http://search.cnn.com/cnn/search?sites=cnn&invocationType=search%2Ftop&query=${escaped_args}"
fi
......@@ -272,6 +272,8 @@ w3_parse_option_hook () {
}
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if [ $SURFRAW_deblists_searchhelp -eq 1 ]; then
......
......@@ -89,6 +89,8 @@ w3_parse_option_hook () {
}
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
......
......@@ -15,6 +15,8 @@ EOF
}
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
if test -z "$w3_args"; then
w3_browse_url "http://www.happypenguin.org/"
......
......@@ -51,6 +51,8 @@ w3_parse_option_hook () {
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
......
......@@ -48,6 +48,8 @@ w3_parse_option_hook () {
}
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
......
......@@ -32,6 +32,8 @@ w3_parse_option_hook () {
}
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
......
......@@ -52,6 +52,8 @@ w3_parse_option_hook () {
}
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
prefix="http://www.sharereactor.com/search.php?search="
......@@ -125,7 +127,6 @@ if [ $SURFRAW_sharereactor_category = gay ]; then
category="&category=17"
fi
if null "$w3_args"; then
w3_browse_url "http://www.sharereactor.com"
else
......
alioth -- Search Alioth (alioth.debian.org)
altavista -- Search the web using Altavista (www.altavista.com)
amazon -- Search the amazon.com bookstore
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)
britannica -- Look up word in Encyclopedia Britannica (www.britannica.com)
cddb -- Search for cd track listings in CDDB (www.gracenote.com)
cite -- Search computer science papers (www.researchindex.com)
cnn -- Search on CNN (cnn.com)
currency -- Abuse the Universal Currency Converter (www.xe.net/ucc)
debbugs -- Search the debian BTS (bugs.debian.org)
debcontents -- Search contents of debian packages (packages.debian.org)
deblists -- Search debian mailing lists (lists.debian.org/search.html)
debpackages -- Search debian packages (packages.debian.org)
deja -- Search usenet using Google Groups (groups.google.com)
excite -- Search on Excite (www.excite.com)
fast -- Search the web using FAST Search (www.alltheweb.com)
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)
google -- Search the web using Google (www.google.com)
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)
pgpkeys -- Search the PGP key database
pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov)
rfc -- Search RFCs (internet standards documents)
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)
slashdot -- Search stories on Slashdot (www.slashdot.org)
slinuxdoc -- Search entries in LDP (www.linuxdoc.org)
sourceforge -- Search SourceForge (www.sourceforge.net)
stockquote -- Get a single stock quote (multiple providers)
sundocs -- Search docs on Sun.com (docs.sun.com)
sunsolve -- Search public docs on Sunsolve (sunsolve.sun.com)
swhois -- Search Whois (www.geektools.com)
thesaurus -- Look up word in Merriam-Webster's Thesaurus (www.m-w.com)
translate -- Translate human languages (various providers)
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)
xxx -- Superior XXX, hot and ready to press (arXiv.org)
yahoo -- Search Yahoo categories (www.yahoo.com)
#!/bin/sh
# $Id$
# elvis: swhois -- Search Whois (www.geektools.com)
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw search Whois (www.geektools.com/cgi-bin/proxy.cgi)
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.geektools.com/whois.php"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://www.geektools.com/whois.php?query=${escaped_args}"
fi
......@@ -13,6 +13,8 @@ EOF
}
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
......
......@@ -40,8 +40,8 @@ Languages:
Examples:
$w3_argv0 Provider's standard translation page
$w3_argv0 -provider raging Use raging search as a translation provider
$w3_argv0 -from fr -to en la verite vous liberera
$w3_argv0 -provider=raging Use raging search as a translation provider
$w3_argv0 -from=fr -to=en la verite vous liberera
Bugs:
Systrans derived providers only support the following translation
combinations:
......
......@@ -30,6 +30,8 @@ w3_parse_option_hook () {
w3_config
# disable requoting, doesn't work with this elvi.
SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
......
......@@ -40,7 +40,7 @@ w3_parse_args "$@"
prefix="http://${SURFRAW_wikipedia_language}.wikipedia.org/w/wiki.phtml?search="
if null $w3_args; then
if null "$w3_args"; then
w3_browse_url "http://${SURFRAW_wikipedia_language}.wikipedia.org"
else
escaped_args=`w3_url_of_arg $w3_args`
......
@bindir@/surfraw @bindir@/sr
@mandir@/man1/surfraw.1.gz @mandir@/man1/sr.1.gz
@mandir@/man1/surfraw.1.gz @mandir@/man1/W.1.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/alioth.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/altavista.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/amazon.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/ask.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/austlii.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/bbcnews.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/cddb.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/cite.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/cnn.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/currency.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/debbugs.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/debcontents.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/deblists.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/debpackages.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/deja.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/ebay.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/excite.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/fast.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/filesearching.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/freebsd.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/freedb.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/freshmeat.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/google.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/happypenguin.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/imdb.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/jake.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/leodict.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/netbsd.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/openbsd.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/pgpkeys.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/pubmed.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/rfc.1sr.gz
@mandir@/man1/elvi.1sr.gz @mandir@/man1/rhyme.1sr.gz