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

« back to all changes in this revision

Viewing changes to elvi/cve

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Smith
  • Date: 2005-04-20 17:00:59 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050420170059-z7j6h1rsqfgfwhmg
Tags: 2.1.0-1
* Ian Beckwith <ianb@nessie.mcc.ac.uk>:
  + New elvi: dmoz, w3html, w3link, w3css, w3rdf.
  + New elvi: rae (by Ruben Pollan <meskio@terra.es>).
  + surfraw.IN:w3_url_escape: escaped `(' and `)'.
  + Fixed elvi (Thanks to Justin B. Rye):
      - sunsolve  (Closes: #289502).
      - altavista (Closes: #289503).
  + deblists: Updated list of debian mailing lists.
  + currency: Now a proper elvis.
  + Added appendix 2 to HACKING on preparing a release.
* Moritz Muehlenhoff <jmm@inutil.org>:
  + Switch rhymes search from Lycos to Rhymezone (by Justin B Rye)
    (Closes: #289498)
  + Fix BBC News search (by Justin B Rye) (Closes: #289499)
  + New elvi by by Justin B Rye (Closes: #290032)
    - cia      Search for CIA documents
    - deblogs  Debian changelogs
    - etym     Search for word origins
    - foldoc   Free online dictionary of computing
  + New cve elvis for CAN assignment searches
  + Rewrite debian/copyright properly

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Moritz Muehlenhoff <jmm@inutil.org>
 
3
# elvis: cve            -- Search for CAN assignments in CVE
 
4
. surfraw || exit 1
 
5
 
 
6
w3_usage_hook () {
 
7
    cat <<EOF
 
8
Usage: $w3_argv0 [options] [search words]...
 
9
Description:
 
10
  Search for CAN assignments in the CVE dictionary
 
11
Example:
 
12
  cve CAN-2005-0666
 
13
EOF
 
14
    w3_global_usage
 
15
}
 
16
 
 
17
w3_config
 
18
w3_parse_args "$@"
 
19
# w3_args now contains a list of arguments
 
20
if test -z "$w3_args"; then
 
21
    w3_browse_url "http://cve.mitre.org"
 
22
else
 
23
    escaped_args=`w3_url_of_arg $w3_args`
 
24
    w3_browse_url "http://cve.mitre.org/cgi-bin/cvename.cgi?name=${escaped_args}"
 
25
fi