~ubuntu-branches/ubuntu/trusty/surfraw/trusty-proposed

« back to all changes in this revision

Viewing changes to elvi/fast

  • Committer: Bazaar Package Importer
  • Author(s): Ian Beckwith
  • Date: 2011-07-12 01:31:52 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110712013152-ys4hnje67mwi3kgu
Tags: 2.2.8-1
* New upstream version
  + SURFRAW_graphical_remote defaults to off, as chromium
    doesn't support '-remote openURL()' (Closes: #628683).
* Move opensearch elvi to main surfraw package.
  It now has an optional mode that uses a redirector
  if the dependencies are not installed.
* debian/rules:
  + hardcode AWK as awk (Closes: #608967).
  + use dh_prep instead of dh_clean -k.
  + add build-arch and build-indep targets.
* debian/control:
  + Build-Depends: bump debhelper dependency to (>= 7).
  + Standards-Version: 3.9.2.
  + surfraw-extra: convert Conflicts: to Breaks:.
  + surfraw:
    * Breaks: surfraw-extra (<= 2.2.7-1)
      as we have taken over /usr/lib/surfraw/opensearch.
    * Recommends: surfraw-extra: add version of (>> 2.2.7-1).
    * Tweak Description.
* debian/source/format: explicitly specify 1.0 source format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# $Id$
3
 
# elvis: fast           -- Search the web using FAST Search (www.alltheweb.com)
4
 
. surfraw || exit 1
5
 
 
6
 
w3_config_hook () {
7
 
def   SURFRAW_fast_type all
8
 
}
9
 
 
10
 
w3_usage_hook () {
11
 
    cat <<EOF
12
 
Usage: $w3_argv0 [options] [search words]...
13
 
Description:
14
 
  Surfraw search the web using FAST Search (www.alltheweb.com)
15
 
Local options:
16
 
  -type=                        Search for
17
 
        all             |       All of the words
18
 
        any             |       Any of the words
19
 
        phrase                  The exact phrase
20
 
                                Default: $SURFRAW_fast_type
21
 
                                Environment: SURFRAW_fast_type
22
 
EOF
23
 
    w3_global_usage
24
 
}
25
 
 
26
 
w3_parse_option_hook () {
27
 
    opt="$1"
28
 
    optarg="$2"
29
 
    case "$opt" in
30
 
        -type=*) setopt   SURFRAW_fast_type $optarg     ;;
31
 
        *) return 1 ;;
32
 
    esac
33
 
    return 0
34
 
}
35
 
 
36
 
w3_config
37
 
w3_parse_args "$@"
38
 
# w3_args now contains a list of arguments
39
 
if test -z "$w3_args"; then
40
 
    w3_browse_url "http://www.alltheweb.com/"
41
 
else
42
 
    escaped_args=`w3_url_of_arg $w3_args`
43
 
    w3_browse_url "http://www.alltheweb.com/cgi-bin/search?type=${SURFRAW_fast_type}&query=${escaped_args}&exec=FAST+Search"
44
 
fi