head 1.3; access; symbols surfraw_1_0_8_RELEASE:1.2; locks; strict; comment @# @; 1.3 date 2008.09.02.11.42.02; author wiz; state dead; branches; next 1.2; 1.2 date 2001.12.25.16.05.26; author proff; state Exp; branches; next 1.1; 1.1 date 2001.12.23.10.15.18; author proff; state Exp; branches; next ; desc @@ 1.3 log @Remove -- it is maintained by someone else at http://surfraw.alioth.debian.org/ @ text @#!/bin/sh # $Id: freebsd,v 1.2 2001/12/25 16:05:26 proff Exp $ # elvis: freebsd -- Search FreeBSD related information (www.freebsd.org) . surfraw || exit 1 w3_config_hook () { defyn SURFRAW_freebsd_mail no defyn SURFRAW_freebsd_pr no defyn SURFRAW_freebsd_cvs no defyn SURFRAW_freebsd_mid no defyn SURFRAW_freebsd_gg no defyn SURFRAW_freebsd_ps no defyn SURFRAW_freebsd_prs no defyn SURFRAW_freebsd_elogs no } w3_usage_hook () { cat < Display message with ID $w3_argv0 -ps Teleport to the Port Survey page $w3_argv0 -prs Teleport to the Port Report Survey page $w3_argv0 -elogs Teleport to the Build Error Logs page EOF w3_global_usage } w3_parse_option_hook () { opt="$1" optarg="$2" case "$opt" in -mail) setoptyn SURFRAW_freebsd_mail yes ;; -mail=*) setoptyn SURFRAW_freebsd_mail $optarg ;; -gg) setoptyn SURFRAW_freebsd_gg yes ;; -gg=*) setoptyn SURFRAW_freebsd_gg $optarg ;; -pr) setoptyn SURFRAW_freebsd_pr yes ;; -pr=*) setoptyn SURFRAW_freebsd_pr $optarg ;; -cvs) setoptyn SURFRAW_freebsd_cvs yes ;; -cvs=*) setoptyn SURFRAW_freebsd_cvs $optarg ;; -mid) setoptyn SURFRAW_freebsd_mid yes ;; -mid=*) setoptyn SURFRAW_freebsd_mid $optarg ;; -ps) setoptyn SURFRAW_freebsd_ps yes ;; -prs) setoptyn SURFRAW_freebsd_prs yes ;; -elogs) setoptyn SURFRAW_freebsd_elogs yes ;; *) return 1 ;; esac return 0 } 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` if ok SURFRAW_freebsd_pr; then if test -z "$escaped_args"; then w3_browse_url "http://www.freebsd.org/cgi/query-pr-summary.cgi?query" else w3_browse_url "http://www.freebsd.org/cgi/query-pr.cgi?pr=${escaped_args}" fi exit $? fi if ok SURFRAW_freebsd_mail; then if test -z "$escaped_args"; then w3_browse_url "http://docs.freebsd.org/mail/" else w3_browse_url "http://www.freebsd.org/cgi/search.cgi?words=${escaped_args}&max=25&sort=score&index=recent&source=freebsd-questions" fi exit $? fi if ok SURFRAW_freebsd_gg; then if test -z "$escaped_args"; then w3_browse_url "http://groups.google.com/groups?hl=en&group=mailing.freebsd" else w3_browse_url "http://groups.google.com/groups?q=${escaped_args}&hl=en&meta=group%3Dmailing.freebsd.*" fi exit $? fi if ok SURFRAW_freebsd_cvs; then if test -z "$escaped_args"; then w3_browse_url "http://cvsweb.freebsd.org/" else w3_browse_url "http://cvsweb.freebsd.org/cgi/cvsweb.cgi?path=${escaped_args}" fi exit $? fi if ok SURFRAW_freebsd_mid; then if test -z "$escaped_args"; then w3_browse_url "http://www.freebsd.org/search/search-mid.html" else w3_browse_url "http://www.freebsd.org/cgi/mid.cgi?id=${escaped_args}&db=mid" fi exit $? fi if ok SURFRAW_freebsd_ps; then w3_browse_url "http://people.freebsd.org/~fenner/portsurvey/" exit $? fi if ok SURFRAW_freebsd_elogs; then w3_browse_url "http://people.freebsd.org/~fenner/errorlogs/" exit $? fi if ok SURFRAW_freebsd_prs; then w3_browse_url "http://people.freebsd.org/~fenner/ports-prs.html" exit $? fi if test -z "$escaped_args"; then w3_browse_url "http://www.freebsd.org/" else w3_browse_url "http://www.freebsd.org/cgi/search.cgi?words=${escaped_args}&max=25&source=www" fi exit $? @ 1.2 log @ Wed Dec 26 02:48:06 EST 2001 - Surfraw 1.0.7 Fix major sed lossage in 1.0.6 which removed all references to http:// (not just in the documentation strings as was intended) @ text @d2 1 a2 1 # $Id: freebsd,v 1.1 2001/12/23 10:15:18 proff Exp $ @ 1.1 log @ Sun Dec 23 21:02:57 EST 2001 - Surfraw 1.0.6 New elvi: freebsd, openbsd, filesearching, ftpfind Updated elvi: translate (babelfish), ftpsearch, fast, netbsd Rename linuxdoc elvi to slinuxdoc, to prevent name clash with sgmltools Use test -r instead of test -e which inexplicably chocked Solaris8 Documentation changes @ text @d2 1 a2 1 # $Id: freebsd,v 1.6 2001/12/03 06:26:40 jason Exp jason $ d96 1 a96 1 w3_browse_url "www.freebsd.org/cgi/query-pr-summary.cgi?query" d98 1 a98 1 w3_browse_url "www.freebsd.org/cgi/query-pr.cgi?pr=${escaped_args}" d104 1 a104 1 w3_browse_url "docs.freebsd.org/mail/" d106 1 a106 1 w3_browse_url "www.freebsd.org/cgi/search.cgi?words=${escaped_args}&max=25&sort=score&index=recent&source=freebsd-questions" d112 1 a112 1 w3_browse_url "groups.google.com/groups?hl=en&group=mailing.freebsd" d114 1 a114 1 w3_browse_url "groups.google.com/groups?q=${escaped_args}&hl=en&meta=group%3Dmailing.freebsd.*" d120 1 a120 1 w3_browse_url "cvsweb.freebsd.org/" d122 1 a122 1 w3_browse_url "cvsweb.freebsd.org/cgi/cvsweb.cgi?path=${escaped_args}" d128 1 a128 1 w3_browse_url "www.freebsd.org/search/search-mid.html" d130 1 a130 1 w3_browse_url "www.freebsd.org/cgi/mid.cgi?id=${escaped_args}&db=mid" d135 1 a135 1 w3_browse_url "people.freebsd.org/~fenner/portsurvey/" d139 1 a139 1 w3_browse_url "people.freebsd.org/~fenner/errorlogs/" d143 1 a143 1 w3_browse_url "people.freebsd.org/~fenner/ports-prs.html" d147 1 a147 1 w3_browse_url "www.freebsd.org/" d149 1 a149 1 w3_browse_url "www.freebsd.org/cgi/search.cgi?words=${escaped_args}&max=25&source=www" @