surfraw-2.3.0/0000755000175000017500000000000013235013644010207 500000000000000surfraw-2.3.0/configure0000755000175000017500000033374013235013640012044 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for surfraw 2.3.0. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='surfraw' PACKAGE_TARNAME='surfraw' PACKAGE_VERSION='2.3.0' PACKAGE_STRING='surfraw 2.3.0' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="surfraw.IN" ac_subst_vars='LTLIBOBJS LIBOBJS PERL ISODATE ELVIDIR GRAPHICALBROWSER TEXTBROWSER INSTALLSR_FALSE INSTALLSR_TRUE OPENSEARCH_FALSE OPENSEARCH_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_opensearch enable_sr with_elvidir with_text_browser with_graphical_browser ' ac_precious_vars='build_alias host_alias target_alias' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures surfraw 2.3.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/surfraw] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of surfraw 2.3.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --disable-opensearch disable local OpenSearch support --disable-sr disable sr alias Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-elvidir=ELVIDIR specify location of elvi --with-text-browser=BROWSER specify default text browser --with-graphical-browser=BROWSER specify default graphical browser Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF surfraw configure 2.3.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by surfraw $as_me 2.3.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.15' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='surfraw' VERSION='2.3.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable local OpenSearch support" >&5 $as_echo_n "checking whether to enable local OpenSearch support... " >&6; } # Check whether --enable-opensearch was given. if test "${enable_opensearch+set}" = set; then : enableval=$enable_opensearch; else enable_opensearch=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_opensearch" >&5 $as_echo "$enable_opensearch" >&6; } if test "$enable_opensearch" = "yes"; then OPENSEARCH_TRUE= OPENSEARCH_FALSE='#' else OPENSEARCH_TRUE='#' OPENSEARCH_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sr alias" >&5 $as_echo_n "checking whether to install sr alias... " >&6; } # Check whether --enable-sr was given. if test "${enable_sr+set}" = set; then : enableval=$enable_sr; else enable_sr=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sr" >&5 $as_echo "$enable_sr" >&6; } if test "$enable_sr" = "yes"; then INSTALLSR_TRUE= INSTALLSR_FALSE='#' else INSTALLSR_TRUE='#' INSTALLSR_FALSE= fi ELVIDIR="\$(libdir)/surfraw" for ac_prog in lynx links2 links elinks w3m netrik do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_TEXTBROWSER+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$TEXTBROWSER"; then ac_cv_prog_TEXTBROWSER="$TEXTBROWSER" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_TEXTBROWSER="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi TEXTBROWSER=$ac_cv_prog_TEXTBROWSER if test -n "$TEXTBROWSER"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXTBROWSER" >&5 $as_echo "$TEXTBROWSER" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$TEXTBROWSER" && break done for ac_prog in iceweasel firefox google-chrome opera mozilla \ xombrero luakit safari epiphany-browser konqueror galeon kazenhakase \ conkeror dillo netscape chromium chrome do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_GRAPHICALBROWSER+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$GRAPHICALBROWSER"; then ac_cv_prog_GRAPHICALBROWSER="$GRAPHICALBROWSER" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_GRAPHICALBROWSER="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi GRAPHICALBROWSER=$ac_cv_prog_GRAPHICALBROWSER if test -n "$GRAPHICALBROWSER"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHICALBROWSER" >&5 $as_echo "$GRAPHICALBROWSER" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$GRAPHICALBROWSER" && break done # Check whether --with-elvidir was given. if test "${with_elvidir+set}" = set; then : withval=$with_elvidir; if test -n "$withval" && test "$withval" != "no" ; then ELVIDIR="$withval";fi fi # Check whether --with-text-browser was given. if test "${with_text_browser+set}" = set; then : withval=$with_text_browser; if test -n "$withval" && test "$withval" != "no" ; then TEXTBROWSER="$withval";fi fi # Check whether --with-graphical-browser was given. if test "${with_graphical_browser+set}" = set; then : withval=$with_graphical_browser; if test -n "$withval" && test "$withval" != "no" ; then GRAPHICALBROWSER="$withval";fi fi ISODATE=`date +%Y-%m-%d` for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" ;; esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 $as_echo "$PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ac_config_files="$ac_config_files Makefile surfraw.lsm surfraw.spec elvi/Makefile test/Makefile examples/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -z "${OPENSEARCH_TRUE}" && test -z "${OPENSEARCH_FALSE}"; then as_fn_error $? "conditional \"OPENSEARCH\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${INSTALLSR_TRUE}" && test -z "${INSTALLSR_FALSE}"; then as_fn_error $? "conditional \"INSTALLSR\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by surfraw $as_me 2.3.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ surfraw config.status 2.3.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "surfraw.lsm") CONFIG_FILES="$CONFIG_FILES surfraw.lsm" ;; "surfraw.spec") CONFIG_FILES="$CONFIG_FILES surfraw.spec" ;; "elvi/Makefile") CONFIG_FILES="$CONFIG_FILES elvi/Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi surfraw-2.3.0/elvi/0000755000175000017500000000000013235013644011146 500000000000000surfraw-2.3.0/elvi/scpan0000755000175000017500000000237213235013533012121 00000000000000#!/bin/sh # $Id$ # elvis: scpan -- Search the Comprehensive Perl Archive Network (metacpan.org) # ianb@erislabs.net 20030918 . surfraw || exit 1 w3_config_hook () { def SURFRAW_scpan_search "$SURFRAW_scpan_opts" } w3_usage_hook () { cat < Environment: SURFRAW_google_country -i, -images Image Search (same as -search=images) -v, -videos Video Search (same as -search=videos) -m, -maps Map Search (same as -search=maps) -n, -news News Search (same as -search=news) -G, -groups Groups Search (same as -search=groups) -safe= Safe Search level default | Default: $SURFRAW_google_safe off | Environment: SURFRAW_google_safe moderate | strict | EOF w3_global_usage } w3_parse_option_hook () { opt="$1" optarg="$2" case "$opt" in -r*=*) setopt SURFRAW_google_results "$optarg" ;; -sa*=*) setopt SURFRAW_google_safe "$optarg" ;; -s*=*) setopt SURFRAW_google_search "$optarg" ;; -l|-lu*) setoptyn SURFRAW_google_lucky 1 ;; -c=*) setopt SURFRAW_google_country "$optarg" ;; -i*) setopt SURFRAW_google_search images ;; -v*) setopt SURFRAW_google_search videos ;; -m*) setopt SURFRAW_google_search maps ;; -n|-news) setopt SURFRAW_google_search news ;; -G|-gr|-groups) setopt SURFRAW_google_search groups ;; *) return 1 ;; esac return 0 } w3_config w3_parse_args "$@" # w3_args now contains a list of arguments # Use SURFRAW_lang if present and the country has not been changed if test -n "$SURFRAW_lang" -a "$SURFRAW_google_country" = "us"; then SURFRAW_google_country="$SURFRAW_lang"; fi case "$SURFRAW_google_country" in af|ag|ai|ar|au|bd|bn|bo|br|bs|bw|by|bz|co|cu|do|ec|eg|et|fj|gi|gt|hk|jm|ly|mt|mx|my|na|nf|ng|ni|np|nz|om|pa|pe|ph|pk|pr|py|qa|sa|sb|sg|sv|tj|tr|tw|ua|ug|uy|vn) domain="com.${SURFRAW_google_country}" ;; cr|id|il|in|jp|ke|kh|kr|ls|ma|th|uk|uz|vc|ve|vg|vi|ck|yu|za|zm|zw) domain="co.${SURFRAW_google_country}" ;; us) domain="com";; *) domain="$SURFRAW_google_country" ;; esac safe="" case "$SURFRAW_google_safe" in strict) safe="&safe=strict" ;; moderate) safe="&safe=moderate" ;; off) safe="&safe=off" ;; esac url="https://" if test -z "$w3_args" ; then case "$SURFRAW_google_search" in i*) url="${url}images" ;; m*) url="${url}maps" ;; g*) url="${url}groups" ;; n*) url="${url}news" ;; v*) url="${url}video" ;; *) url="${url}www" ;; esac url="${url}.google.${domain}" else search="$SURFRAW_google_search" case "$SURFRAW_google_search" in v*) url="${url}www"; search="search"; extra="&tbo=p&tbm=vid";; i*) url="${url}images" ; search="images";; m*) url="${url}maps" ; search=maps ;; g*) url="${url}groups" ; search=groups ;; n*) url="${url}news" ; search=news ;; *) url="${url}www" ;; esac url="${url}.google.${domain}/${search}" escaped_args=`w3_url_of_arg $w3_args` url="${url}?q=${escaped_args}&num=${SURFRAW_google_results}" if [ "$SURFRAW_google_lucky" = 1 ]; then button=`w3_url_escape "I'm Feeling Lucky"` url="${url}&btnI=$button" fi url="${url}${safe}${extra}" fi w3_browse_url "$url" surfraw-2.3.0/elvi/pin0000755000175000017500000000444713235013533011610 00000000000000#!/bin/sh # elvis: pin -- Search Pinboard bookmarks (https://pinboard.in) # author: jason ryan • http://jasonwryan.com . surfraw || exit 1 w3_config_hook () { def SURFRAW_pinboard_tags "$SURFRAW_tags" def SURFRAW_pinboard_user "$SURFRAW_user" def SURFRAW_pinboard_new 0 def SURFRAW_pinboard_popular 0 } w3_usage_hook () { cat < Default: $SURFRAW_bugzilla_product Environment: SURFRAW_bugzilla_product EOF w3_global_usage } w3_parse_option_hook () { opt="$1" optarg="$2" case "$opt" in -st*=*) setopt SURFRAW_bugzilla_status "$optarg" ;; -s*=*) setopt SURFRAW_bugzilla_site "$optarg" ;; -p*=*) setopt SURFRAW_bugzilla_product "$(w3_url_of_arg "$optarg")" ;; *) return 1 ;; esac return 0 } w3_config w3_parse_args "$@" # w3_args now contains a list of arguments if [ "$SURFRAW_bugzilla_product" = all ] ; then setopt SURFRAW_bugzilla_product "" fi case "$SURFRAW_bugzilla_status" in open) setopt SURFRAW_bugzilla_status "__open__" ;; closed) setopt SURFRAW_bugzilla_status "__closed__" ;; all) setopt SURFRAW_bugzilla_status "__all__" ;; esac case "$SURFRAW_bugzilla_site" in kernel) setopt SURFRAW_bugzilla_site "https://bugzilla.kernel.org" ;; mozilla) setopt SURFRAW_bugzilla_site "https://bugzilla.mozilla.org" ;; gnome) setopt SURFRAW_bugzilla_site "https://bugzilla.gnome.org" ;; kde) setopt SURFRAW_bugzilla_site "https://bugs.kde.org" ;; apache) setopt SURFRAW_bugzilla_site "https://issues.apache.org/bugzilla" ;; freedesktop) setopt SURFRAW_bugzilla_site "https://bugs.freedesktop.org" ;; eclipse) setopt SURFRAW_bugzilla_site "https://bugs.eclipse.org/bugs" ;; redhat) setopt SURFRAW_bugzilla_site "https://bugzilla.redhat.com/" ;; gentoo) setopt SURFRAW_bugzilla_site "https://bugs.gentoo.org" ;; novell) setopt SURFRAW_bugzilla_site "https://bugzilla.novell.com" ;; esac if test -z "$w3_args"; then w3_browse_url "${SURFRAW_bugzilla_site}/query.cgi?format=advanced" else escaped_args=`w3_url_of_arg $w3_args` # params="short_desc_type=allwordssubstr&short_desc=${escaped_args}&bug_status=${SURFRAW_bugzilla_status}" params="content=${escaped_args}&bug_status=${SURFRAW_bugzilla_status}" params="${params}&product=${SURFRAW_bugzilla_product}" w3_browse_url "${SURFRAW_bugzilla_site}/buglist.cgi?${params}" fi surfraw-2.3.0/elvi/discogs0000755000175000017500000000232313235013533012444 00000000000000#!/bin/sh # elvis: discogs -- Search the Discogs database of music information (www.discogs.com) # Patroklos Argyroudis, argp at domain cs.tcd.ie, 20060823 . surfraw || exit 1 w3_config_hook() { def SURFRAW_discogs_category all } w3_usage_hook() { cat << EOF Usage: $w3_argv0 [options] [search words]... Description: Surfraw search the Discogs database of music information (www.discogs.com) Local options: -category= Category to search all | artists | labels | releases | catno Default: $SURFRAW_discogs_category Environment: SURFRAW_discogs_category EOF w3_global_usage } w3_parse_option_hook() { opt="$1" optarg="$2" case "$opt" in -category=*) setopt SURFRAW_discogs_category $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 "https://www.discogs.com/" else escaped_args=`w3_url_of_arg $w3_args` w3_browse_url "https://www.discogs.com/search?type=${SURFRAW_discogs_category}&q=${escaped_args}&btn=Search" fi # EOF surfraw-2.3.0/elvi/piratebay0000755000175000017500000000360213235013533012772 00000000000000#!/bin/sh # elvis: piratebay -- Search The Pirate Bay (https://thepiratebay.org) . surfraw || exit 1 w3_config_hook () { def SURFRAW_bay_categories "$SURFRAW_categories" } w3_usage_hook () { cat < . surfraw || exit 1 w3_config_hook () { def SURFRAW_pgpkeys_sigs off defyn SURFRAW_pgpkeys_fingerprints off defyn SURFRAW_pgpkeys_exact off def SURFRAW_pgpkeys_server sks } w3_usage_hook () { cat < . surfraw || exit 1 w3_config_hook () { def SURFRAW_ebay_country "$SURFRAW_lang" def SURFRAW_ebay_results 50 } w3_usage_hook () { cat < . surfraw || exit 1 w3_usage_hook () { cat < . surfraw || exit 1 w3_config_hook () { defyn SURFRAW_debwiki_title 0 defyn SURFRAW_debwiki_context 1 defyn SURFRAW_debwiki_case 0 defyn SURFRAW_debwiki_direct 0 } w3_usage_hook () { cat <.. tags. Environment: SURFRAW_w3rdf_embedded -useme I grant w3c permission to save the RDF for developing test cases. Environment: SURFRAW_w3rdf_useme -anon Make anonymous nodes unlabelled. Environment: SURFRAW_w3rdf_anon -fontsize=SIZE Font Size. Values: 10, 12, 14, 16, 20 Default: $SURFRAW_w3rdf_fontsize Environment: SURFRAW_w3rdf_fontsize -orient=ORIENTATION Orientation Values: TB (Top to Bottom), LR (Left to Right) Default: $SURFRAW_w3rdf_orientation Environment: SURFRAW_w3rdf_orientation -node=COLOUR Node Colour. Environment: SURFRAW_w3rdf_node Default: $SURFRAW_w3rdf_node -nodetext=COLOUR Node Text Colour. Environment: SURFRAW_w3rdf_nodetext Default: $SURFRAW_w3rdf_nodetext -arc=COLOUR Arc Colour. Environment: SURFRAW_w3rdf_arc Default: $SURFRAW_w3rdf_arc -arctext=COLOUR Arc Text Colour. Environment: SURFRAW_w3rdf_arctext Default: $SURFRAW_w3rdf_arctext Valid Colours: Black, Blue, Darkgreen, Red EOF w3_global_usage } w3_parse_option_hook () { opt="$1" optarg="$2" case "$opt" in -out*=*) case "$optarg" in [Tt]*) setopt SURFRAW_w3rdf_output "PRINT_TRIPLES" ;; [Gg]*) setopt SURFRAW_w3rdf_output "PRINT_GRAPH" ;; [Bb]*) setopt SURFRAW_w3rdf_output "PRINT_GRAPH" ;; *) echo "Invalid value $optarg"; exit 1 ;; esac ;; -for*=*) setopt SURFRAW_w3rdf_format "$optarg" ;; -sav*) setoptyn SURFRAW_w3rdf_savedot 1 ;; -nt*) setoptyn SURFRAW_w3rdf_ntriples 1 ;; -em*) setoptyn SURFRAW_w3rdf_embedded 1 ;; -use*) setoptyn SURFRAW_w3rdf_useme 1 ;; -anon*) setoptyn SURFRAW_w3rdf_anon 1 ;; -font*=*) setopt SURFRAW_w3rdf_fontsize "$optarg" ;; -or*=*) setopt SURFRAW_w3rdf_orientation "$optarg" ;; -node=*) setopt SURFRAW_w3rdf_node "$optarg" ;; -nodet*) setopt SURFRAW_w3rdf_nodetext "$optarg" ;; -arc=*) setopt SURFRAW_w3rdf_arc "$optarg" ;; -arct*=*) setopt SURFRAW_w3rdf_arctext "$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 "https://www.w3.org/RDF/Validator/" else escaped_args=`w3_url_of_arg $w3_args` url="https://www.w3.org/RDF/Validator/ARPServlet?PARSE=PARSE_URI&URI=${escaped_args}&TRIPLES_AND_GRAPH=${SURFRAW_w3rdf_output}&FORMAT=${SURFRAW_w3rdf_format}&NODE_COLOR=${SURFRAW_w3rdf_node}&NODE_TEXT_COLOR=${SURFRAW_w3rdf_nodetext}&EDGE_COLOR=${SURFRAW_w3rdf_arc}&EDGE_TEXT_COLOR=${SURFRAW_w3rdf_arctext}&FONT_SIZE=${SURFRAW_w3rdf_fontsize}&ORIENTATION=${SURFRAW_w3rdf_orientation}" if [ $SURFRAW_w3rdf_savedot -eq 1 ] then url="${url}&SAVE_DOT_FILE=on" fi if [ $SURFRAW_w3rdf_ntriples -eq 1 ] then url="${url}&NTRIPLES=on" fi if [ $SURFRAW_w3rdf_embedded -eq 1 ] then url="${url}&EMBEDDED_RDF=on" fi if [ $SURFRAW_w3rdf_useme -eq 1 ] then url="${url}&SAVE_RDF=on" fi if [ $SURFRAW_w3rdf_anon -eq 1 ] then url="${url}&ANON_NODES_EMPTY=on" fi w3_browse_url "${url}" fi surfraw-2.3.0/elvi/acronym0000755000175000017500000001442113235013533012463 00000000000000#!/bin/sh # $Id$ # elvis: acronym -- Look for acronyms definitions (www.acronymfinder.com) . surfraw || exit 1 w3_config_hook () { defyn SURFRAW_acronym_ict 0 defyn SURFRAW_acronym_sci 0 defyn SURFRAW_acronym_gov 0 defyn SURFRAW_acronym_org 0 defyn SURFRAW_acronym_biz 0 defyn SURFRAW_acronym_pop 0 defyn SURFRAW_acronym_exa 1 defyn SURFRAW_acronym_wim 0 defyn SURFRAW_acronym_zip 0 defyn SURFRAW_acronym_ran 0 defyn SURFRAW_acronym_gen 0 defyn SURFRAW_acronym_alpha 0 defyn SURFRAW_acronym_attic 0 def SURFRAW_acronym_path def SURFRAW_acronym_par } w3_usage_hook () { cat < English dictionary (dict.leo.org) # $Id$ # surfraw plugin for the biggest English/German dictionary on # the WWW: dict.leo.org jmm@informatik.uni-bremen.de # options added by Ian Beckwith . surfraw || exit 1 w3_config_hook () { defyn SURFRAW_leodict_link yes defyn SURFRAW_leodict_head yes defyn SURFRAW_leodict_grid yes def SURFRAW_leodict_to "either" def SURFRAW_leodict_spell "standard" def SURFRAW_leodict_tol "standard" def SURFRAW_leodict_lang "$SURFRAW_lang" } w3_parse_option_hook () { opt="$1" optarg="$2" case "$opt" in -link*=*) setopt SURFRAW_leodict_link $optarg ;; -head*=*) setopt SURFRAW_leodict_head $optarg ;; -grid*=*) setopt SURFRAW_leodict_grid $optarg ;; -to=*) setopt SURFRAW_leodict_to $optarg ;; -spell*=*) setopt SURFRAW_leodict_spell $optarg ;; -tol*=*) setopt SURFRAW_leodict_tol $optarg ;; -lang*=*) setopt SURFRAW_leodict_lang $optarg ;; *) return 1 ;; esac return 0 } w3_usage_hook () { cat < # elvis: cve -- Search for CAN assignments in CVE . surfraw || exit 1 w3_usage_hook () { cat < release | Release (album) <*> release_group | Release Group label | Label <*> annotation | Annotation barcode | Barcode catno | Catalog number cdstub | CD Stub discid | Disc ID editor | Editor freedb | FreeDB freedb | FreeDB ID isrc | ISRC iswc | ISWC mbid | MBID puid | PUID recording | Recording trmid | TRM ID work | Work tag Tag Search With Tag Search, [search words] are treated as artist name, use -tag* below to specify other fields. <*> = supported by direct search (-d) Environment: SURFRAW_musicbrainz_search -tagrelease=ALBUM Album/Release tag search (implies -search=tag) -tagnum=TRACKNUM Track number tag search (implies -search=tag) -tagtrack=SONG Track tag search (implies -search=tag) -taglen=DURATION Track length tag search (implies -search=tag) -tagfile=FILENAME Filename tag search (implies -search=tag) -tagpuid=FILENAME PUID tag search (implies -search=tag) EOF w3_global_usage } w3_parse_option_hook () { opt="$1" optarg="$2" case "$opt" in -results=*) setopt SURFRAW_musicbrainz_results $optarg ;; -tagrel*=*) setopt SURFRAW_musicbrainz_tagrelease $optarg setopt SURFRAW_musicbrainz_search tag ;; -tagnu*=*) setopt SURFRAW_musicbrainz_tagnum $optarg setopt SURFRAW_musicbrainz_search tag ;; -tagtra*=*) setopt SURFRAW_musicbrainz_tagtrack $optarg setopt SURFRAW_musicbrainz_search tag ;; -tagle*=*) setopt SURFRAW_musicbrainz_taglen $optarg setopt SURFRAW_musicbrainz_search tag ;; -tagp*=*) setopt SURFRAW_musicbrainz_tagpuid $optarg setopt SURFRAW_musicbrainz_search tag ;; -tagf*=*) setopt SURFRAW_musicbrainz_tagfile $optarg setopt SURFRAW_musicbrainz_search tag ;; -a) setoptyn SURFRAW_musicbrainz_advanced 1 ;; -d) setoptyn SURFRAW_musicbrainz_direct 1 ;; -search=*) searchtype="$optarg" case "$searchtype" in ar*) setopt SURFRAW_musicbrainz_search artist ;; release_*) setopt SURFRAW_musicbrainz_search release_group ;; release|rel|al*) setopt SURFRAW_musicbrainz_search release ;; an*) setopt SURFRAW_musicbrainz_search annotation ;; ba*) setopt SURFRAW_musicbrainz_search barcode ;; ca*) setopt SURFRAW_musicbrainz_search catno ;; cd*) setopt SURFRAW_musicbrainz_search cdstub ;; d*) setopt SURFRAW_musicbrainz_search discid ;; e*) setopt SURFRAW_musicbrainz_search editor ;; freedb|fr) setopt SURFRAW_musicbrainz_search freedb ;; freedbid) setopt SURFRAW_musicbrainz_search freedbid ;; isr*) setopt SURFRAW_musicbrainz_search isrc ;; isw*) setopt SURFRAW_musicbrainz_search iswc ;; l*) setopt SURFRAW_musicbrainz_search label ;; m*) setopt SURFRAW_musicbrainz_search mbid ;; p*) setopt SURFRAW_musicbrainz_search puid ;; rec*) setopt SURFRAW_musicbrainz_search recording ;; tr*) setopt SURFRAW_musicbrainz_search trmid ;; w*) setopt SURFRAW_musicbrainz_search work ;; ta*) setopt SURFRAW_musicbrainz_search tag ;; *) err "Search type not known" esac ;; *) return 1 ;; esac return 0 } w3_config w3_parse_args "$@" # w3_args now contains a list of arguments if test -z "$w3_args" && test -z "$SURFRAW_musicbrainz_tagrelease" && test -z "$SURFRAW_musicbrainz_tagnum" && test -z "$SURFRAW_musicbrainz_tagtrack" && test -z "$SURFRAW_musicbrainz_taglen" && test -z "$SURFRAW_musicbrainz_tagpuid" && test -z "$SURFRAW_musicbrainz_tagfile" then w3_browse_url "https://musicbrainz.org/search.html" else escaped_args=`w3_url_of_arg $w3_args` url="https://musicbrainz.org" if ifyes SURFRAW_musicbrainz_direct then case "$SURFRAW_musicbrainz_search" in artist|release|label) url="${url}/search/oldsearch.html?query=${escaped_args}&type=${SURFRAW_musicbrainz_search}&limit=${SURFAW_musicbrainz_results}&handlearguments=1" ;; *) err "Search type $SURFRAW_musicbrainz_search not supported by Direct Search (-d)" ;; esac else case "$SURFRAW_musicbrainz_search" in artist|release_group|release|recording|work| \ label|annotation|cdstub|editor| \ freedb) url="${url}/search?query=${escaped_args}&type=${SURFRAW_musicbrainz_search}&limit=${SURFRAW_musicbrainz_limit}" if ifyes SURFRAW_musicbrainz_advanced then url="${url}&adv=on" fi ;; catno|barcode|discid|freedbid|freedb| \ puid|trmid|isrc|iswc| \ discid) url="${url}/otherlookup?${SURFRAW_musicbrainz_search}=${escaped_args}" ;; mbid) url="${url}/release/${escaped_args}" ;; tag) url="${url}/taglookup?artist=${escaped_args}&release=${SURFRAW_musicbrainz_tagrelease}&track=${SURFRAW_musicbrainz_tagtrack}&tracknum=${SURFRAW_musicbrainz_tagnum}&duration=${SURFRAW_musicbrainz_taglen}&filename=${SURFRAW_musicbrainz_tagfile}&puid=${SURFRAW_musicbrainz_puid}" ;; *) err Unknown search type "${SURFRAW_musicbrainz_search}" ;; esac fi w3_browse_url "$url" fi surfraw-2.3.0/elvi/imdb0000755000175000017500000000305113235013533011723 00000000000000#!/bin/sh # $Id$ # elvis: imdb -- Search the Internet Movie Database (www.imdb.com) # ianb@erislabs.net 20030209 . surfraw || exit 1 w3_config_hook () { def SURFRAW_imdb_category all } w3_usage_hook () { cat <&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = elvi ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(dist_elvi_SCRIPTS) \ $(am__DIST_COMMON) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(elvidir)" SCRIPTS = $(dist_elvi_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/mkinstalldirs DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ELVIDIR = @ELVIDIR@ GRAPHICALBROWSER = @GRAPHICALBROWSER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ ISODATE = @ISODATE@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TEXTBROWSER = @TEXTBROWSER@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # $Id$ elvidir = $(ELVIDIR) dist_elvi_SCRIPTS = \ S \ W \ acronym \ ads \ alioth \ amazon \ archpkg \ archwiki \ arxiv \ ask \ aur \ austlii \ bing \ bbcnews \ bookfinder \ bugmenot \ bugzilla \ cia \ cisco \ cite \ cliki \ cnn \ comlaw \ commandlinefu \ ctan \ currency \ cve \ debbugs \ debcodesearch \ debcontents \ deblists \ deblogs \ debpackages \ debpkghome \ debpts \ debsec \ debvcsbrowse \ debwiki \ deja \ discogs \ duckduckgo \ ebay \ etym \ excite \ f5 \ foldoc \ finkpkg \ freebsd \ freedb \ freshmeat \ fsfdir \ gcache \ genbugs \ genportage \ github \ gmane \ google \ gutenberg \ imdb \ ixquick \ jamendo \ javasun \ jquery \ l1sp \ lastfm \ leodict \ lsm \ macports \ mathworld \ mdn \ mininova \ musicbrainz \ mysqldoc \ netbsd \ nlab \ ntrs \ openbsd \ oraclesearch \ pgdoc \ pgpkeys \ phpdoc \ pin \ piratebay \ priberam \ pubmed \ rae \ rfc \ scholar \ scpan \ searx \ slashdot \ slinuxdoc \ sourceforge \ springer \ stack \ stockquote \ thesaurus \ translate \ urban \ w3css \ w3html \ w3link \ w3rdf \ wayback \ webster \ wikipedia \ wiktionary \ woffle \ wolfram \ worldwidescience \ yahoo \ yandex \ youtube all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu elvi/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu elvi/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_elviSCRIPTS: $(dist_elvi_SCRIPTS) @$(NORMAL_INSTALL) @list='$(dist_elvi_SCRIPTS)'; test -n "$(elvidir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(elvidir)'"; \ $(MKDIR_P) "$(DESTDIR)$(elvidir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(elvidir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(elvidir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_elviSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_elvi_SCRIPTS)'; test -n "$(elvidir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(elvidir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(elvidir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_elviSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_elviSCRIPTS uninstall-local .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_elviSCRIPTS install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_elviSCRIPTS uninstall-local .PRECIOUS: Makefile uninstall-local: -rmdir $(DESTDIR)$(PREFIX)/$(ELVIDIR) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: surfraw-2.3.0/elvi/github0000755000175000017500000000302713235013533012275 00000000000000#!/bin/sh # elvis: github -- Search GitHub (https://github.com) # Author: jason ryan • https://jasonwryan.com . surfraw || exit 1 w3_config_hook () { def SURFRAW_git_type "$SURFRAW_type" def SURFRAW_git_lang any } w3_usage_hook () { cat < . surfraw || exit 1 w3_usage_hook () { cat </dev/null 2>&1 then isnum=1 if ifyes SURFRAW_rfc_nodirect then nodirect=1 fi else isnum=0 fi # Do we want to go direct to rfc? if [ $isnum -eq 1 -a $searchset -eq 0 -a $nodirect -eq 0 ] then # do we want txt if [ "$SURFRAW_rfc_output" = "txt" ] then subdir="" case "$SURFRAW_rfc_search" in all) fileprefix="rfc";; rfc) fileprefix="rfc";; std) fileprefix="std"; subdir="/std";; bcp) fileprefix="bcp"; subdir="/bcp";; fyi) fileprefix="fyi"; subdir="/fyi";; *) echo "Unknown search: $SURFRAW_rfc_search"; exit;; esac if ifyes SURFRAW_rfc_ftp then url="ftp://ftp.rfc-editor.org/in-notes${subdir}/${fileprefix}${escaped_args}.txt" elif [ $fileprefix = rfc ] || [ $fileprefix = bcp ]; then url="https://tools.ietf.org/html/${fileprefix}${escaped_args}" else url="https://www.rfc-editor.org/rfc${subdir}/${fileprefix}${escaped_args}.txt" fi else # godless PDFs case "$SURFRAW_rfc_search" in all) ;; rfc) ;; *) echo "Only RFCs available as PDF files, not STDs, BCPs or FYIs. Try without -pdf"; exit 1;; esac # pdfs only available through ftp url="ftp://ftp.rfc-editor.org/in-notes/pdfrfc/rfc${escaped_args}.txt.pdf" fi else # not direct to rfc, construct url from options url="https://www.rfc-editor.org/cgi-bin/rfcsearch.pl?searchwords=${escaped_args}" if [ $isnum -eq 1 -a $searchset -eq 0 ] then url="$url&opt=Number" else case "$SURFRAW_rfc_field" in all*) url="$url&opt=All+Fields";; num*) url="$url&opt=Number";; tit*) url="$url&opt=Title";; auth*) url="$url&opt=Author";; key*) url="$url&opt=Keywords";; kw*) url="$url&opt=Keywords";; *) url="$url&opt=All+Fields";; esac fi url="$url&num=$SURFRAW_rfc_results" url="$url&filefmt=$SURFRAW_rfc_output" url="$url&search_doc=search_$SURFRAW_rfc_search" if ifyes SURFRAW_rfc_matchexact then url="$url&match_method=entire" else url="$url&match_method=prefix" fi if ifyes SURFRAW_rfc_showabs then url="$url&abstract=abson" else url="$url&abstract=absoff" fi if ifyes SURFRAW_rfc_showkw then url="$url&keywords=keyon" else url="$url&keywords=keyoff" fi if ifyes SURFRAW_rfc_reverse then url="$url&sort_method=older" else url="$url&sort_method=newer" fi if ifyes SURFRAW_rfc_ftp then url="$url&format=ftp" else url="$url&format=http" fi fi w3_browse_url "$url" fi surfraw-2.3.0/elvi/thesaurus0000755000175000017500000000125013235013533013032 00000000000000#!/bin/sh # $Id$ # elvis: thesaurus -- Look up a synonym in Oxford's thesaurus (en.oxforddictionaries.com) . surfraw || exit 1 w3_usage_hook () { cat < . surfraw || exit 1 w3_config_hook () { def SURFRAW_wikipedia_language "$SURFRAW_lang" defyn SURFRAW_wikipedia_deletionpedia no def SURFRAW_wikipedia_fallback wikipedia } 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 -psearch surfraw Search ports for surfraw $w3_argv0 -psearch=text perl Search port descriptions for perl 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 ;; -psea*=*) setoptyn SURFRAW_freebsd_portsearch yes; setopt SURFRAW_freebsd_portsearchtype $optarg ;; -psea*) setoptyn SURFRAW_freebsd_portsearch yes ;; -psec*=*) setoptyn SURFRAW_freebsd_portsearch yes; setopt SURFRAW_freebsd_portsec $optarg ;; -psec*) setoptyn SURFRAW_freebsd_portsearch 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_portsearch; then if test -z "$escaped_args"; then w3_browse_url "https://www.freebsd.org/cgi/ports.cgi" else w3_browse_url "https://www.freebsd.org/cgi/ports.cgi?query=${escaped_args}&stype=${SURFRAW_freebsd_portsearchtype}&sektion=${SURFRAW_freebsd_portsec}" fi exit $? fi if ok SURFRAW_freebsd_pr; then if test -z "$escaped_args"; then w3_browse_url "https://www.freebsd.org/cgi/query-pr-summary.cgi?query" else w3_browse_url "https://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 "https://docs.freebsd.org/mail/" else w3_browse_url "https://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 "https://groups.google.com/groups?hl=en&group=mailing.freebsd" else w3_browse_url "https://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 "https://cvsweb.freebsd.org/" else w3_browse_url "https://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 "https://www.freebsd.org/search/search-mid.html" else w3_browse_url "https://www.freebsd.org/cgi/mid.cgi?id=${escaped_args}&db=mid" fi exit $? fi if ok SURFRAW_freebsd_ps; then w3_browse_url "https://people.freebsd.org/~fenner/portsurvey/" exit $? fi if ok SURFRAW_freebsd_elogs; then w3_browse_url "https://people.freebsd.org/~fenner/errorlogs/" exit $? fi if ok SURFRAW_freebsd_prs; then w3_browse_url "https://people.freebsd.org/~fenner/ports-prs.html" exit $? fi if test -z "$escaped_args"; then w3_browse_url "https://www.freebsd.org/" else w3_browse_url "https://www.freebsd.org/cgi/search.cgi?words=${escaped_args}&max=25&source=www" fi exit $? surfraw-2.3.0/elvi/commandlinefu0000755000175000017500000000423113235013533013632 00000000000000#!/bin/sh # $Id$ # elvis: commandlinefu -- search on www.commandlinefu.com # The API of the site is described at http://www.commandlinefu.com/site/api. . surfraw || exit 1 w3_config_hook () { defyn SURFRAW_commandlinefu_votes 1 def SURFRAW_commandlinefu_format html } w3_usage_hook () { cat < APPENDIX 1 Adding an elvi to the distribution: 1: write it (see above) 2: copy elviname to the elvi directory 3: make the elvi executable (chmod 755 elvipath) so the test suite can run it directly. 4: add elviname to the elvi_SCRIPTS list in elvi/Makefile.am 5: add a link for the manpage in links.IN 6: update the elvi list in README 7: add an entry to the ChangeLog and NEWS 8: add yourself or the author to AUTHORS 9: test 10: add tests to test suite, see test/README 11: if the elvi has heavy dependencies, consider moving it to the surfraw-extra package by adding its files to debian/surfraw-extra.files 12: if using git, 'git add elvi/elviname' then commit and push. APPENDIX 2 Preparing a release of surfraw: 1: git clone git://git.debian.org/surfraw/surfraw 2: git clone git://git.debian.org/surfraw/web 3: cd surfraw 4: git tag surfraw-versionnumber-debianversion 5: git push --tags 6: mkdir -p ../release/upload ; cd ../release 7: git clone git://git.debian.org/surfraw/surfraw 8: cd surfraw 9: git checkout surfraw-versionnumber-debianversion 10: rm -rf .git 11: ./prebuild && ./configure && make distcheck 12: # test surfraw-version.tar.gz 13: cp surfraw-version.tar.gz ../surfraw_version.orig.tar.gz 14: mv surfraw-version.tar.gz ../upload 15: pdebuild --buildresult ../upload --auto-debsign --logfile ../pbuilder.log 16: cd ../upload 17: # test and upload the debian packages 18: cp * ../../web/dist 19: cd ../../web 20: make install # see README.WEB for more info surfraw-2.3.0/surfraw-update-path.IN0000755000175000017500000002342313235013533014266 00000000000000#!/usr/bin/perl -w # $Id$ # Ian Beckwith 20030927 # adds surfraw's elvi directory to your PATH in your shell's config file # see end of file for POD documentation use strict; use Getopt::Long; use Fcntl qw(SEEK_END); use vars qw($me $elvidir); $me=($0=~/(?:.*\/)?(.*)/)[0]; $elvidir="@ELVIDIR@"; use vars qw($starttag $endtag); $starttag="### Added by surfraw."; $endtag ="### End surfraw addition."; use vars qw(%shells); %shells=( "bash" => \&sh_bash, "sh" => \&sh_posix, "ash" => \&sh_posix, "dash" => \&sh_posix, "csh" => \&sh_csh, "tcsh" => \&sh_csh, "pdksh" => \&sh_posix, "ksh" => \&sh_posix, "zsh" => \&sh_zsh, "rc" => \&sh_rc, "es" => \&sh_es, ); use vars qw($ADD $CHECK $REMOVE); $ADD = 0; $CHECK = 1; $REMOVE = 2; use vars qw($OK $NOTFOUND $ERROR); $OK=0; $NOTFOUND=1; $ERROR=2; use vars qw($POSIX $CSH $RC @syntax); $POSIX = 0; $CSH = 1; $RC = 2; @syntax=(); $syntax[$POSIX]="\texport PATH=\$PATH:$elvidir\n"; $syntax[$CSH]="\tsetenv PATH \"\${PATH}:$elvidir\"\n"; $syntax[$RC]="\tpath=(\$path $elvidir)\n"; my $sys=0; my $allshells=0; my $help=0; my $action=$CHECK; #default my $shell=$ENV{SHELL}; GetOptions('add' => sub { $action=$ADD; }, 'check' => sub { $action=$CHECK; }, 'remove' => sub { $action=$REMOVE; }, 'sys' => \$sys, 'shell=s' => \$shell, 'all' => \$allshells, 'help' => \$help); if($help) { usage(); exit 0; } if($allshells) { my $ret=0; my @shells=qw(sh csh zsh); # rc and es only have user startup files # bash sys startup file is same as sh unless($sys) { @shells=(@shells, qw(bash es rc)); } for my $s (@shells) { my $thisret=$shells{$s}($action,$sys); $ret=max($thisret,$ret); } exit $ret; } else { if(defined($shell)) { $shell=~s/.*\/\-?//; # strip path } else { print STDERR "$me: Cannot determine shell. Use -shell=shellname\n"; exit $ERROR; } unless(exists($shells{$shell})) { print STDERR "Shell $shell not supported, please manually add $elvidir to your \$PATH\n"; exit $ERROR; } exit($shells{$shell}($action,$sys)); } sub sh_posix { my($action,$sys)=@_; if($sys) { return scan("/etc/profile",$action,$sys,$POSIX); } elsif(exists($ENV{ENV})) { return scan($ENV{ENV},$action,$sys,$POSIX); } elsif(exists($ENV{HOME})) { return scan($ENV{HOME}."/.profile",$action,$sys,$POSIX); } else { print STDERR "$me: Cannot find home directory (\$HOME is not set)\n"; return $ERROR; } } sub sh_csh { my($action,$sys)=@_; if($sys) { return scan("/etc/csh.cshrc",$action,$sys,$CSH); } elsif(exists($ENV{HOME})) { return scan($ENV{HOME}."/.cshrc",$action,$sys,$CSH); } else { print STDERR "$me: Cannot find home directory (\$HOME is not set)\n"; return $ERROR; } } sub sh_bash { my($action,$sys)=@_; if($sys) { return scan("/etc/profile",$action,$sys,$POSIX); } elsif(exists($ENV{HOME})) { my $home=$ENV{HOME}; my $file; if(-r $home."/.bash_profile") { $file=$home."/.bash_profile"; } elsif(-r $home."/.bash_login") { $file=$home."/.bash_login"; } else { $file=$home."/.profile"; } # whether it exists or not # for interactive login shells my $ret1=scan($file,$action,$sys,$POSIX); # for interactive non-login shells my $ret2=scan($home."/.bashrc",$action,$sys,$POSIX); return(max($ret1,$ret2)); } else { print STDERR "$me: Cannot find home directory (\$HOME is not set)\n"; return $ERROR; } } sub sh_zsh { my($action,$sys)=@_; if($sys) { if(-d "/etc/zsh") { return scan("/etc/zsh/zshenv",$action,$sys,$POSIX); } else { return scan("/etc/zshenv",$action,$sys,$POSIX); } } elsif(exists($ENV{ZDOTDIR})) { return scan($ENV{ZDOTDIR}."/.zshenv",$action,$sys,$POSIX); } elsif(exists($ENV{HOME})) { return scan($ENV{HOME}."/.zshenv",$action,$sys,$POSIX); } else { print STDERR "$me: Cannot find home directory (\$HOME is not set)\n"; return $ERROR; } } sub sh_rc { my($action,$sys)=@_; if($sys) { print STDERR "$me: Shell rc has no system config file\n"; return $ERROR; } elsif(exists($ENV{HOME})) { return scan($ENV{HOME}."/.rcrc",$action,$sys,$RC); } else { print STDERR "$me: Cannot find home directory (\$HOME is not set)\n"; return $ERROR; } } sub sh_es { my($action,$sys)=@_; if($sys) { print STDERR "$me: Shell es has no system config file\n"; return $ERROR; } elsif(exists($ENV{HOME})) { return scan($ENV{HOME}."/.esrc",$action,$sys,$RC); } else { print STDERR "$me: Cannot find home directory (\$HOME is not set)\n"; return $ERROR; } } sub scan { my($file,$action,$sys,$type)=@_; if(-e $file) { # file exists my $mode="<"; if(($action==$ADD) || ($action==$REMOVE)) { $mode="+<"; } unless(open(F,"$mode$file")) { print STDERR "$me: Cannot open $file: $!\n"; return $ERROR; } my $found=0; my $startoffset=0; my $aftertag=0; my $rest=''; my $offset=tell(F); while() { if(/$starttag/) { $found=1; $startoffset=$offset; } elsif($found && /$endtag/) { $aftertag=1; } elsif($aftertag) { $rest.=$_; } $offset=tell(F); } if($found) { if($action==$ADD) { print STDERR "$me: Surfraw config already present in $file\n"; return $OK; } elsif($action==$CHECK) { print("$me: Surfraw config present in $file\n"); return $OK; } else # remove { # move rest of file up to startoffset unless(truncate(F,$startoffset)) { print STDERR "$me: Cannot truncate $file: $!\n"; return $ERROR; } # just in case, seek to new end unless(seek(F,0, SEEK_END)) { print STDERR "$me: $file: Cannot seek: $!\n"; return $ERROR; } print F $rest; print "$me: Removed surfraw config code from $file\n"; return $OK; } } else # tag not found { if($action==$ADD) { # seek to end just in case unless(seek(F,0,SEEK_END)) { print STDERR "$me: $file: Cannot seek: $!\n"; return $ERROR; } print F maketag($sys,$type); print "$me: Added surfraw config code to $file\n"; return $OK; } elsif($action==$CHECK) { print "$me: surfraw config code not found in $file\n"; return $NOTFOUND; } else # remove { print STDERR "$me: cannot remove surfraw code: not found\n"; return $ERROR; } } unless(close(F)) { print STDERR "$me: Cannot close $file: $!\n"; return $ERROR; } } else # file doesnt exist { if($action==$CHECK) { print "$me: surfraw config code not found (file $file not found)\n"; return $NOTFOUND; } elsif($action==$REMOVE) { print STDERR "$me: Cannot remove surfraw config (file $file not found)\n"; return $ERROR; } else { # create file unless(open(F,">$file")) { print STDERR "$me: Cannot open $file for writing: $!\n"; return $ERROR; } print F maketag($sys,$type); unless(close(F)) { print STDERR "$me: Error closing $file: $!\n"; return $ERROR; } chmod(0644,$file) or warn("$me: Could not set permissions on $file: $!\n"); print "$me: Added surfraw config code to $file\n"; return $OK; } } } sub maketag { my ($sys,$type)=@_; my $remove=" To remove use $me -remove"; my $tag=$starttag; $tag .= $remove; if($sys) { $tag .= " -sys"; } $tag .= "\n"; $tag .= $syntax[$type]; $tag .= $endtag . "\n"; return $tag; } sub max { my($a,$b)=@_; return(($a>$b)?$a:$b); } sub usage { print "Usage: $me [-add] [-remove] [-check] [-sys] [-all] [-help] [-shell=SHELL]\n"; print " Adds code to your shell config to add $elvidir to your PATH.\n"; print "Options:\n"; print "\t-add Add surfraw code.\n"; print "\t-check Check if surfraw code is installed (Default).\n"; print "\t-remove Remove Surfraw code.\n"; print "\t-sys Alter system files rather than user files.\n"; print "\t-shell=SHELL Specify shell to configure (defaults to \$SHELL).\n"; print "\t-all Configure all known shells.\n"; print "\t-help This help.\n"; print "Supported shells: sh, ash, bash, dash, csh, tcsh, ksh, pdksh, zsh, rc, es\n"; } __DATA__ =head1 NAME surfraw-update-path - updates PATH in shell config files =head1 SYNOPSIS surfraw-update-path [B<-add>] [B<-remove>] [B<-check>] [B<-sys>] [B<-all>] [B<-help>] [B<-shell>=I] =head1 DESCRIPTION surfraw-update-path adds the surfraw elvi directory (@ELVIDIR@) to your PATH in your shell's config file. Currently it supports B, B, B, B, B, B, B, B, B, B, and B Don't forget to login again or source your login files for it to take effect. =head1 OPTIONS =over 4 =item B<-check> Checks to see if the surfraw config code is present. This is the default. =item B<-add> Adds the surfraw config code. =item B<-remove> Removes the surfraw config code =item B<-sys> Updates the system-wide shell config instead of the user. Must be done as root. =item B<-shell>=I Selects the shell to configure. Defaults to the value of the $SHELL environment variable. Currently supported shells are: B, B, B, B, B, B, B, B, B, B, and B. =item B<-all> Attempts to configure the startup files for all known shells =item B<-help> Gives a usage message =back =head1 RETURN VALUE -check returns 0 if the surfraw code is present in the file, 1 if it is not found, or 2 on error. All other options return 0 on success, or 2 on error. =head1 ENVIRONMENT =over 4 =item SHELL Used to determine which shell to configure, if B<-shell> is not given. =item HOME Used to find users config files. =item ENV Used by posix-compliant shells to specify a startup rc file. =item ZDOTDIR Used to find user config files for zsh. If not set, defaults to HOME. =back =head1 SEE ALSO surfraw(1), sh(1), ash(1), bash(1), dash(1), csh(1), tcsh(1), ksh(1), pdksh(1), zsh(1), rc(1), es(1) =head1 AUTHOR Ian Beckwith =cut surfraw-2.3.0/COPYING0000644000175000017500000000074113235013533011161 00000000000000 Copyright (c) 2003-2018 The Surfraw-Devel Team Copyright (c) 2000-2001 Julian Assange Copyright (c) 2001 Australian Institute for Collaborative Research Copyright (c) 2000 Melbourne Institute for Advanced Study The copyright holders listed above assert no rights on this release of the software ``surfraw'' and thereby explicity place this release into the public domain. Do what you will. surfraw-2.3.0/INSTALL0000644000175000017500000002322513235013533011161 00000000000000 ______ _ _ ______ _______ ______ _______ _ _ _ / _____)(_) (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_) ( (____ _ _ _____) ) _____ _____) ) _______ _ _ _ \____ \ | | | || __ / | ___) | __ / | ___ || || || | _____) )| |___| || | \ \ | | | | \ \ | | | || || || | (______/ \_____/ |_| |_||_| |_| |_||_| |_| \_____/ Surfraw - Shell Users' Revolutionary Front Rage Against the Web Oh Baybe I need some Deep Linking Let us go Surfin' in the raw! See README for Surfraw specific usage information Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the `--target=TYPE' option to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc will cause the specified gcc to be used as the C compiler (unless it is overridden in the site shell script). `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. surfraw-2.3.0/mkinstalldirs0000755000175000017500000000370413235013533012736 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here surfraw-2.3.0/test/0000755000175000017500000000000013235013644011166 500000000000000surfraw-2.3.0/test/l1sp.test0000644000175000017500000000002713235013533012662 00000000000000l1sp defun Results for surfraw-2.3.0/test/bugmenot.test0000644000175000017500000000003713235013533013624 00000000000000bugmenot latimes.com Username: surfraw-2.3.0/test/deblists.test0000644000175000017500000000016313235013533013615 00000000000000deblists debian welcomes diversity June 6th deblists -m 20120606151810.GJ4839@camblue.cbg.collabora.co.uk June 6th surfraw-2.3.0/test/mathworld.test0000644000175000017500000000004013235013533013777 00000000000000mathworld matrix Search Results surfraw-2.3.0/test/stockquote.test0000644000175000017500000000003613235013533014204 00000000000000stockquote GOOG Alphabet Inc. surfraw-2.3.0/test/jamendo.test0000644000175000017500000000002613235013533013417 00000000000000SKIP needs javascript surfraw-2.3.0/test/lsm.test0000644000175000017500000000004213235013533012573 00000000000000lsm surfraw lsmbyid\.cgi.*surfraw surfraw-2.3.0/test/slinuxdoc.test0000644000175000017500000000002413235013533014010 00000000000000slinuxdoc raid RAID surfraw-2.3.0/test/freshmeat.test0000644000175000017500000000007313235013533013762 00000000000000freshmeat surfraw Revolutionary Front Rage Against the Web surfraw-2.3.0/test/javasun.test0000644000175000017500000000005313235013533013451 00000000000000javasun FileInputStream Java Platform SE 6 surfraw-2.3.0/test/ask.test0000644000175000017500000000003113235013533012554 00000000000000ask foo Foo Fighters surfraw-2.3.0/test/ixquick.test0000644000175000017500000000002513235013533013456 00000000000000ixquick foo Fighters surfraw-2.3.0/test/elviwithouttests0000755000175000017500000000063013235013533014476 00000000000000#!/usr/bin/perl -w # $Id$ # Ian Beckwith use strict; my @elvi=<../elvi/*>; @elvi = map { s/.*\///; $_;} @elvi; @elvi = grep { $_ ne "CVS" && $_ !~ /^Makefile/ } @elvi; my %tests = map { s/.test$//; $_=>1;} <*.test>; my @elviwithouttests=grep { !exists($tests{$_}) } @elvi; if(@elviwithouttests) { print "Elvi without tests:\n"; print join(" ",@elviwithouttests),"\n"; } surfraw-2.3.0/test/leodict.test0000644000175000017500000000003213235013533013422 00000000000000leodict cheese Kreuzspule surfraw-2.3.0/test/musicbrainz.test0000644000175000017500000000024513235013533014333 00000000000000musicbrainz swans US art rock musicbrainz -search=mbid b3468ed3-ebae-475b-932e-5578336ce72b My Father Will Guide Me musicbrainz -tagrelease=soundtracks swans Blind surfraw-2.3.0/test/archwiki.test0000644000175000017500000000007013235013533013602 00000000000000archwiki firmware Unified Extensible Firmware Interface surfraw-2.3.0/test/deja.test0000644000175000017500000000002113235013533012700 00000000000000SKIP javascript surfraw-2.3.0/test/etym.test0000644000175000017500000000003713235013533012762 00000000000000etym quotidian everyday, daily surfraw-2.3.0/test/urban.test0000644000175000017500000000003013235013533013104 00000000000000urban foo metasyntactic surfraw-2.3.0/test/w3rdf.test0000644000175000017500000000011213235013533013023 00000000000000w3rdf http://www.w3.org/People/Connolly/home-smart.rdf Validation Results surfraw-2.3.0/test/google.test0000644000175000017500000000004013235013533013252 00000000000000google foo About [\d,]+ results surfraw-2.3.0/test/debcodesearch.test0000644000175000017500000000012213235013533014552 00000000000000debcodesearch oth.debian.org/projects/surfraw alioth.debian.org/projects/surfraw surfraw-2.3.0/test/yandex.test0000644000175000017500000000005113235013533013270 00000000000000SKIP demands captcha when used with LWP surfraw-2.3.0/test/discogs.test0000644000175000017500000000004413235013533013435 00000000000000discogs radiohead /artist/Radiohead surfraw-2.3.0/test/wayback.test0000644000175000017500000000006313235013533013424 00000000000000wayback http://www.debian.org Saved.*[\d,]+.*times surfraw-2.3.0/test/ads.test0000644000175000017500000000006313235013533012552 00000000000000ads rawlings adamson whittet extinction properties surfraw-2.3.0/test/debcontents.test0000644000175000017500000000021613235013533014313 00000000000000debcontents surfraw usr/bin.*surfraw debcontents -u surfraw etc/bash_completion.d.*surfraw debcontents -distro=slink -a grep base/help/.*grep surfraw-2.3.0/test/wolfram.test0000644000175000017500000000003313235013533013447 00000000000000wolfram foo metasyntactic surfraw-2.3.0/test/archpkg.test0000644000175000017500000000004113235013533013416 00000000000000archpkg perl-yaml perl-yaml-syck surfraw-2.3.0/test/excite.test0000644000175000017500000000002513235013533013262 00000000000000excite foo Wikipedia surfraw-2.3.0/test/gcache.test0000644000175000017500000000017213235013533013216 00000000000000gcache www.mozilla.org This is Google.*s cache of gcache -i www.openoffice.org cache:www.openoffice.org&hl=.*&strip=1 surfraw-2.3.0/test/bugzilla.test0000644000175000017500000000065613235013533013624 00000000000000bugzilla ipv6 bugs found bugzilla -s=mozilla ipv6 bugs found bugzilla -s=gnome ipv6 bugs found bugzilla -s=kde ipv6 bugs found bugzilla -s=apache ipv6 bugs found bugzilla -s=freedesktop ipv6 bugs found bugzilla -s=eclipse SQLIntegrityConstraintViolationException bugs found bugzilla -s=mandriva ipv6 bugs found bugzilla -s=gentoo net-wireless/wimax bugs found bugzilla -s=novell ipv6 bugs found bugzilla -s=redhat ipv6 bugs found surfraw-2.3.0/test/wikipedia.test0000644000175000017500000000004113235013533013745 00000000000000wikipedia surfraw Julian Assange surfraw-2.3.0/test/cnn.test0000644000175000017500000000002713235013533012561 00000000000000SKIP needs javascript surfraw-2.3.0/test/pin.test0000644000175000017500000000003013235013533012563 00000000000000pin surfraw Shell Users surfraw-2.3.0/test/aur.test0000644000175000017500000000004213235013533012567 00000000000000aur mawk AWK Programming Language surfraw-2.3.0/test/debpkghome.test0000644000175000017500000000003513235013533014107 00000000000000debpkghome surfraw Oh Baybee surfraw-2.3.0/test/phpdoc.test0000644000175000017500000000004713235013533013262 00000000000000phpdoc array_merge Merges the elements surfraw-2.3.0/test/cia.test0000644000175000017500000000004113235013533012533 00000000000000cia england 1 - 10 surfraw-2.3.0/test/ctan.test0000644000175000017500000000004613235013533012731 00000000000000ctan -d -au -top texlive texlive-repo surfraw-2.3.0/test/w3css.test0000644000175000017500000000010313235013533013040 00000000000000w3css http://www.miromiro.com/index.html CSS Validator results for surfraw-2.3.0/test/debvcsbrowse.test0000644000175000017500000000005013235013533014467 00000000000000debvcsbrowse gnuit Savannah Git Hosting surfraw-2.3.0/test/gmane.test0000644000175000017500000000011413235013533013067 00000000000000gmane -li="gmane.os.openbsd.*" Raadt Theo gmane -L openbsd gmane.os.openbsd surfraw-2.3.0/test/debwiki.test0000644000175000017500000000007413235013533013423 00000000000000debwiki LowThresholdNMU Results 1 - \d+ of surfraw-2.3.0/test/worldwidescience.test0000644000175000017500000000002613235013533015334 00000000000000SKIP needs javascript surfraw-2.3.0/test/webster.test0000644000175000017500000000005113235013533013453 00000000000000webster quotidian Examples of.*quotidian surfraw-2.3.0/test/bing.test0000644000175000017500000000004613235013533012723 00000000000000bing surfraw a fast unix command line surfraw-2.3.0/test/cisco.test0000644000175000017500000000004113235013533013077 00000000000000cisco netflow Cisco IOS.*NetFlow surfraw-2.3.0/test/slashdot.test0000644000175000017500000000002713235013533013624 00000000000000slashdot debian Debian surfraw-2.3.0/test/comlaw.test0000644000175000017500000000004013235013533013260 00000000000000comlaw nuclear Nuclear Science surfraw-2.3.0/test/translate.test0000644000175000017500000000004513235013533014000 00000000000000translate -from=en -to=de cats Katze surfraw-2.3.0/test/lastfm.test0000644000175000017500000000006113235013533013267 00000000000000lastfm freedom has come and gone Ring Them Bells surfraw-2.3.0/test/springer.test0000644000175000017500000000004113235013533013630 00000000000000springer Ludger Teixeira Figura surfraw-2.3.0/test/alioth.test0000644000175000017500000000003613235013533013263 00000000000000SKIP Refuses to work with LWP surfraw-2.3.0/test/thesaurus.test0000644000175000017500000000003213235013533014022 00000000000000thesaurus weary exhausted surfraw-2.3.0/test/cite.test0000644000175000017500000000007313235013533012730 00000000000000cite functional Functions cite -auth knuth Results.*1 - 10 surfraw-2.3.0/test/acronym.test0000644000175000017500000000041213235013533013451 00000000000000acronym -e NASA National Aeronautics and Space Administration \(USA\) acronym -u NASA Azerbaijan acronym surfraw What does SURFRAW stand for\? acronym -f Systematic Buzz Phrase Projector \(SBPP\) number acronym -a aaa Academia de Automovilismo Andrade \(Guatemala\) surfraw-2.3.0/test/rae.test0000644000175000017500000000002613235013533012551 00000000000000SKIP needs javascript surfraw-2.3.0/test/imdb.test0000644000175000017500000000032413235013533012716 00000000000000imdb Ralph Bates Horror of Frankenstein imdb -category=Titles As Good as It Gets As Good as It Gets.*1997 imdb -category=Names Peter Dinklage The Station Agent imdb -category=Characters Ralph Wiggum The Simpsons surfraw-2.3.0/test/duckduckgo.test0000644000175000017500000000004113235013533014122 00000000000000duckduckgo foo Urban Dictionary surfraw-2.3.0/test/commandlinefu.test0000644000175000017500000000053113235013533014624 00000000000000commandlinefu is the place to record those command-line gems that you return to again and again commandlinefu find something Terminal - Commands matching find something - [\d,]+ results commandlinefu -txt test ^# commandlinefu.com by David Winterbottom\n commandlinefu -json test ^\[\{"id":"\d+","command":.*\}\]$ commandlinefu -rss test surfraw-2.3.0/test/foldoc.test0000644000175000017500000000003113235013533013244 00000000000000foldoc foo Smokey Stover surfraw-2.3.0/test/searx.test0000644000175000017500000000024313235013533013125 00000000000000searx surfraw Shell Users Revolutionary Front Rage Against the Web searx -c=music john coltrane Giant Steps searx -u=3 -c=vid rick astley Never Gonna Give You Up surfraw-2.3.0/test/arxiv.test0000644000175000017500000000006013235013533013131 00000000000000arxiv planetesimal Showing results 1 through 25 surfraw-2.3.0/test/ebay.test0000644000175000017500000000107013235013533012722 00000000000000ebay ipod iPod ebay -c=ar ipod iPod ebay -c=at ipod iPod ebay -c=au ipod iPod ebay -c=nl_BE ipod iPod ebay -c=fr_BE ipod iPod ebay -c=br ipod iPod ebay -c=ca ipod iPod ebay -c=ch ipod iPod ebay -c=cn ipod iPod ebay -c=de ipod iPod ebay -c=es ipod iPod ebay -c=fr ipod iPod ebay -c=hk ipod iPod ebay -c=ie ipod iPod ebay -c=in ipod iPod ebay -c=kr ipod iPod ebay -c=my ipod Apple ebay -c=mx ipod iPod ebay -c=nl ipod iPod ebay -c=nz ipod iPod ebay -c=ph ipod iPod ebay -c=pl ipod iPod ebay -c=sg ipod iPod ebay -c=se ipod iPod ebay -c=tw ipod iPod ebay -c=uk ipod iPod surfraw-2.3.0/test/runtests0000755000175000017500000001014013235013533012714 00000000000000#!/usr/bin/perl -w # $Id$ # Ian Beckwith # eval "require LWP::UserAgent" or die("runtests: libwww-perl not found, aborting tests.\n"); use Cwd; use strict; use vars qw($me); $me=($0=~/(?:.*\/)?(.*)/)[0]; our($OK,$FAIL,$SKIP)=(0,1,2); our $ua; my $scriptpath=Cwd::abs_path($0); # drop scriptname and last path component to get srcdir my $srcdir= ($scriptpath=~/(.*)\/.*\/.*/)[0]; my @testfiles; if(@ARGV) { @testfiles=@ARGV; } else { @testfiles=<$srcdir/test/*.test>; } die("No tests found\n") unless(@testfiles); $ua=LWP::UserAgent->new; #$ua->env_proxy; $ua->cookie_jar({file => "COOKIES", autosave => 0}); # Google & CNN dont like LWP::UserAgent's UserAgent string, nicking iceweasel's $ua->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070508 Iceweasel/2.0.0.4 (Debian-2.0.0.4-1)"); my %results; my @testnamelengths= map { my $base=(/(?:.*\/)?(.*)/)[0]; length($base); } @testfiles; my $longestname=(sort { $a <=> $b } @testnamelengths)[$#testnamelengths]; $longestname -= length ".test"; for my $testfile (@testfiles) { my ($elvi)=($testfile=~/(?:.*\/)?(.*)\.test/); unless(defined($elvi)) { $elvi=$testfile; } print $elvi; my $space=($longestname+1)-(length $elvi); if($space<1) { $space=1; } print " " x $space; $results{$elvi}=[ runtests($testfile) ]; } my @failedelvi=grep { grep { $_ == $FAIL; } @{$results{$_}}; } sort keys %results; if(@failedelvi) { my $total=keys %results; my $failed=@failedelvi; printf "Failed $failed/$total (%d%%) elvi: ", ($failed/$total) * 100; for my $badelvis (@failedelvi) { my @thisresults=@{$results{$badelvis}}; if($#thisresults) { my $first=1; print "${badelvis}["; for(my $i=0;$i<=$#thisresults;$i++) { if($thisresults[$i] == $FAIL) { if(!$first) { print ","; } $first=0; print $i+1; } } print "] "; } else { print "$badelvis "; } } print "\n"; } else { print "All tests passed.\n"; } sub runtests { my $testfile=shift; my $testnum=0; my @results=(); unless(open(TEST,$testfile)) { print "FAIL: cannot open $testfile: $!\n"; return $FAIL; } my($cmd,$match); my @tests; my $count=0; while($cmd=) { $testnum++; chomp($cmd); next if($cmd=~/^\s*$/); # ignore blank lines if($cmd=~/^SKIP\s*(.*)/) { print "Test manually (see test/README)"; if(defined($1) && $1 ne "") { print ": $1"; } print "\n"; return $SKIP; } $count++; $match=; unless(defined($match)) { print "FAIL: no match string defined for test $count\n"; close TEST; return $FAIL; } chomp($match); push(@tests, { $cmd => $match }); } close(TEST); my @ret=testelvis(@tests); print "\n"; return @ret; } sub testelvis { my(@tests)=@_; my @results=(); for(my $count=0; $count <= $#tests; $count++) { if($count) { print " "; } if($#tests) { print($count+1,": "); } my $hash=$tests[$count]; my $cmd =(keys (%$hash))[0]; my $match=(values(%$hash))[0]; unless(open(ELVI,"SURFRAW_lang= SURFRAW_browser=echo SURFRAW_global_conf=\"$srcdir/surfraw.conf\" PATH=\"$srcdir/elvi:$srcdir:\$PATH\" $cmd|")) { print "FAIL: cannot execute \"$cmd\": $!"; push(@results,$FAIL); next; } my $url=; unless(defined($url)) { print "FAIL: elvi \"$cmd\" did not produce a URL"; push(@results,$FAIL); close ELVI; next; } close ELVI; chomp $url; my $response=$ua->get($url); unless($response->is_success) { print "FAIL: Get failed: ",$response->status_line; if($response->code =~/^[45]/) { push(@results,$FAIL); } else { print "Internal Error: Code ",$response->code," not handled"; push(@results,$FAIL); } next; } my $content=$response->decoded_content || $response->content; if(!defined($content)) { print "FAIL: Result Page Empty\n"; push(@results,$FAIL); } elsif($content =~ /$match/) { print "OK"; push(@results,$OK); } else { print "FAIL: No Match"; # print $content; push(@results,$FAIL); } } return @results; } surfraw-2.3.0/test/netbsd.test0000644000175000017500000000012413235013533013260 00000000000000netbsd netbsd NetBSD netbsd -pr 666 loose source routing netbsd -mail netbsd NetBSD surfraw-2.3.0/test/jquery.test0000644000175000017500000000006213235013533013321 00000000000000jquery ajaxError requests complete with an error surfraw-2.3.0/test/cve.test0000644000175000017500000000004113235013533012554 00000000000000cve CAN-2005-0469 DEBIAN:DSA-703 surfraw-2.3.0/test/debbugs.test0000644000175000017500000000005413235013533013416 00000000000000debbugs surfraw Maintainers for surfraw are surfraw-2.3.0/test/github.test0000644000175000017500000000011113235013533013257 00000000000000github browser mozilla github window-manager wmfs github surfraw surfraw surfraw-2.3.0/test/scholar.test0000644000175000017500000000004513235013533013436 00000000000000scholar cosmology About \d+.*results surfraw-2.3.0/test/openbsd.test0000644000175000017500000000002613235013533013434 00000000000000openbsd Raadt Theo de surfraw-2.3.0/test/debpts.test0000644000175000017500000000003713235013533013265 00000000000000debpts surfraw source.*surfraw surfraw-2.3.0/test/cliki.test0000644000175000017500000000004513235013533013076 00000000000000cliki sbcl Result page: surfraw-2.3.0/test/COOKIES0000644000175000017500000000020713235013533012121 00000000000000#LWP-Cookies-1.0 Set-Cookie3: SunSolve_SLA="accept=Y"; path="/"; domain=.sun.com; path_spec; expires="2037-06-02 20:00:00Z"; version=0 surfraw-2.3.0/test/freedb.test0000644000175000017500000000003713235013533013233 00000000000000freedb swans \d+ result.*found surfraw-2.3.0/test/debpackages.test0000644000175000017500000000030713235013533014235 00000000000000debpackages surfraw Found \d+ matching package debpackages -u surfraw Found \d+ matching package debpackages -a surfraw Found \d+ matching package surfraw-2.3.0/test/currency.test0000644000175000017500000000006613235013533013640 00000000000000currency -from=USD -to=GBP 1 1.*USD.*=.*\d+\.\d+.*GBP surfraw-2.3.0/test/wiktionary.test0000644000175000017500000000016313235013533014204 00000000000000wiktionary synecdoche the name of a part of something to represent the whole wiktionary -l=fr croix Sorte de gibet surfraw-2.3.0/test/yahoo.test0000644000175000017500000000002513235013533013120 00000000000000yahoo swans Anatidae surfraw-2.3.0/test/fsfdir.test0000644000175000017500000000003713235013533013261 00000000000000fsfdir emacs highly extensible surfraw-2.3.0/test/woffle.test0000644000175000017500000000026313235013533013267 00000000000000http_proxy=http://localhost:8080/ wget --delete-after -q http://www.debian.org/ && sudo /usr/share/wwwoffle/search/htdig/wwwoffle-htdig-incr && ../elvi/woffle -p debian Universal surfraw-2.3.0/test/pgdoc.test0000644000175000017500000000023013235013533013073 00000000000000SURFRAW_customsearch_provider=duckduckgo pgdoc select SELECT.*DISTINCT SURFRAW_customsearch_provider=duckduckgo pgdoc -v=9.1 select Documentation:.*9.1 surfraw-2.3.0/test/mininova.test0000644000175000017500000000005613235013533013625 00000000000000mininova simpsons Search results for simpsons surfraw-2.3.0/test/Makefile.in0000644000175000017500000003032313235013641013151 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = test ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/mkinstalldirs \ README DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ELVIDIR = @ELVIDIR@ GRAPHICALBROWSER = @GRAPHICALBROWSER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ ISODATE = @ISODATE@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TEXTBROWSER = @TEXTBROWSER@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = runtests elviwithouttests README COOKIES W.test S.test \ acronym.test ads.test alioth.test amazon.test archpkg.test \ archwiki.test arxiv.test ask.test aur.test austlii.test \ bbcnews.test bing.test bookfinder.test bugmenot.test \ bugzilla.test cia.test cisco.test cite.test cliki.test cnn.test \ comlaw.test commandlinefu.test ctan.test currency.test cve.test \ debbugs.test debcodesearch.test debcontents.test deblists.test \ deblogs.test debpackages.test debpkghome.test debpts.test \ debsec.test debvcsbrowse.test debwiki.test deja.test discogs.test \ duckduckgo.test ebay.test etym.test excite.test f5.test \ finkpkg.test foldoc.test freebsd.test freedb.test freshmeat.test \ fsfdir.test gcache.test genbugs.test genportage.test github.test \ gmane.test google.test gutenberg.test imdb.test ixquick.test \ jamendo.test javasun.test jquery.test lastfm.test leodict.test \ l1sp.test lsm.test macports.test mathworld.test mdn.test \ mininova.test musicbrainz.test mysqldoc.test netbsd.test \ nlab.test ntrs.test openbsd.test oraclesearch.test pgdoc.test \ phpdoc.test pin.test piratebay.test pgpkeys.test priberam.test \ pubmed.test rae.test rfc.test scholar.test scpan.test searx.test \ slashdot.test slinuxdoc.test sourceforge.test springer.test \ stack.test stockquote.test thesaurus.test translate.test \ urban.test w3css.test w3html.test w3link.test w3rdf.test \ wayback.test webster.test wikipedia.test wiktionary.test \ wolfram.test woffle.test worldwidescience.test yahoo.test \ yandex.test youtube.test all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am .PRECIOUS: Makefile test: ./runtests ./elviwithouttests # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: surfraw-2.3.0/test/f5.test0000644000175000017500000000005313235013533012314 00000000000000f5 SNMP Simple Network Management Protocol surfraw-2.3.0/test/youtube.test0000644000175000017500000000003213235013533013473 00000000000000youtube simpsons Simpsons surfraw-2.3.0/test/deblogs.test0000644000175000017500000000004313235013533013420 00000000000000deblogs surfraw unstable; urgency= surfraw-2.3.0/test/scpan.test0000644000175000017500000000004213235013533013104 00000000000000scpan Acme The Base of Perfection surfraw-2.3.0/test/oraclesearch.test0000644000175000017500000000005113235013533014433 00000000000000oraclesearch mysql Database in the cloud surfraw-2.3.0/test/S.test0000644000175000017500000000014213235013533012203 00000000000000S -custom-search=duckduckgo foo Urban Dictionary S -custom-search=google foo About [\d,]+ results surfraw-2.3.0/test/ntrs.test0000644000175000017500000000005713235013533012774 00000000000000ntrs space grown insulin microgravity crystals surfraw-2.3.0/test/sourceforge.test0000644000175000017500000000005613235013533014330 00000000000000sourceforge surfraw Shell Revolutionary Front surfraw-2.3.0/test/nlab.test0000644000175000017500000000003313235013533012714 00000000000000nlab dirac Dirac induction surfraw-2.3.0/test/rfc.test0000644000175000017500000000012113235013533012550 00000000000000rfc 2822 Internet Message Format rfc -search=std 11 ARPA INTERNET TEXT MESSAGES surfraw-2.3.0/test/mdn.test0000644000175000017500000000010413235013533012555 00000000000000SURFRAW_customsearch_provider=duckduckgo mdn form HTML/Element/form surfraw-2.3.0/test/bookfinder.test0000644000175000017500000000022713235013533014127 00000000000000bookfinder 1984 Nineteen Eighty-Four bookfinder -search=isbn 1556229119 Publisher:.*Jones.*Bartlett bookfinder -search=author Carl Sagan Pale Blue Dot surfraw-2.3.0/test/README0000644000175000017500000000307513235013533011770 00000000000000 Surfraw Test Suite ------------------ To test the elvi, run make test in the root of the source tree. To run individual test(s), change into the test/ directory and run ./runtests test1.test test2.test... Some tests may fail temporarily, for instance if there are network problems or the site is overloaded, it is worth waiting and retrying before filing a bug. Notes ----- To run the test suite, perl and libwww-perl (lwp) must be installed. To run woffle.test successfully: 1. wwwoffle must be running on localhost:8080 2. wget must be installed (for preloading the wwwoffle cache) 3. htdig must be installed (for generating the search indexes) 3. the user running the tests must be able to run sudo /usr/share/wwwoffle/search/htdig/wwwoffle-htdig-incr to update the htdig index Writing tests ------------- Tests should be called elviname.test and be placed in the test/ directory Test files consist of pairs of lines. The first line is the command to run (starting with the elvi name, don't use a leading 'sr' or 'surfraw', and the second line is a perl regular expression (which can be just plain text) to match against the resulting web page. Multiple tests can be implemented per elvi, feel free to submit more! When new test files have been written, add them to EXTRA_DIST in test/Makefile.am, rerun autotools, and 'git add' them too. If an elvis cannot be tested automatically, it can be marked as such by starting the first line of the .test file with SKIP followed by an optional reason. If a cookie is needed (eg with sunsolve), add it to test/COOKIES. surfraw-2.3.0/test/W.test0000644000175000017500000000007013235013533012207 00000000000000W http://www.debian.org/ The Universal Operating System surfraw-2.3.0/test/genportage.test0000644000175000017500000000004613235013533014137 00000000000000genportage surfraw www-client/surfraw surfraw-2.3.0/test/mysqldoc.test0000644000175000017500000000035013235013533013635 00000000000000SURFRAW_customsearch_provider=duckduckgo mysqldoc select select_expr SURFRAW_customsearch_provider=google mysqldoc select is used to retrieve rows SURFRAW_customsearch_provider=duckduckgo mysqldoc -v=5.1 MySQL 5\.5 Reference Manual surfraw-2.3.0/test/debsec.test0000644000175000017500000000005413235013533013230 00000000000000debsec netkit-telnet-ssl Available versions surfraw-2.3.0/test/priberam.test0000644000175000017500000000004013235013533013577 00000000000000priberam equivalente produzindo surfraw-2.3.0/test/Makefile.am0000644000175000017500000000316413235013533013143 00000000000000EXTRA_DIST = runtests elviwithouttests README COOKIES W.test S.test \ acronym.test ads.test alioth.test amazon.test archpkg.test \ archwiki.test arxiv.test ask.test aur.test austlii.test \ bbcnews.test bing.test bookfinder.test bugmenot.test \ bugzilla.test cia.test cisco.test cite.test cliki.test cnn.test \ comlaw.test commandlinefu.test ctan.test currency.test cve.test \ debbugs.test debcodesearch.test debcontents.test deblists.test \ deblogs.test debpackages.test debpkghome.test debpts.test \ debsec.test debvcsbrowse.test debwiki.test deja.test discogs.test \ duckduckgo.test ebay.test etym.test excite.test f5.test \ finkpkg.test foldoc.test freebsd.test freedb.test freshmeat.test \ fsfdir.test gcache.test genbugs.test genportage.test github.test \ gmane.test google.test gutenberg.test imdb.test ixquick.test \ jamendo.test javasun.test jquery.test lastfm.test leodict.test \ l1sp.test lsm.test macports.test mathworld.test mdn.test \ mininova.test musicbrainz.test mysqldoc.test netbsd.test \ nlab.test ntrs.test openbsd.test oraclesearch.test pgdoc.test \ phpdoc.test pin.test piratebay.test pgpkeys.test priberam.test \ pubmed.test rae.test rfc.test scholar.test scpan.test searx.test \ slashdot.test slinuxdoc.test sourceforge.test springer.test \ stack.test stockquote.test thesaurus.test translate.test \ urban.test w3css.test w3html.test w3link.test w3rdf.test \ wayback.test webster.test wikipedia.test wiktionary.test \ wolfram.test woffle.test worldwidescience.test yahoo.test \ yandex.test youtube.test test: ./runtests ./elviwithouttests surfraw-2.3.0/test/piratebay.test0000644000175000017500000000017113235013533013763 00000000000000piratebay simpsons impsons.*S\d+E\d+ piratebay -s=tv simpsons The Simpsons piratebay -s=movies revolution Revolution OS surfraw-2.3.0/test/freebsd.test0000644000175000017500000000026113235013533013415 00000000000000freebsd contributing contributing-ports freebsd -mail bsd Archive:\s+ freebsd -pr 666 ldconfig freebsd -psearch surfraw Command line interface to popular WWW search engines surfraw-2.3.0/test/stack.test0000644000175000017500000000010013235013533013100 00000000000000stack Python Debian CentOS system is Debian or CentOS in Python surfraw-2.3.0/test/bbcnews.test0000644000175000017500000000004213235013533013423 00000000000000bbcnews minister Prime Minister surfraw-2.3.0/test/w3html.test0000644000175000017500000000007413235013533013223 00000000000000w3html http://surfraw.alioth.debian.org/ Validation Output: surfraw-2.3.0/test/austlii.test0000644000175000017500000000004413235013533013454 00000000000000austlii cost Documents found:\s+\d+ surfraw-2.3.0/test/pgpkeys.test0000644000175000017500000000017313235013533013467 00000000000000pgpkeys surfraw E7892D44 pgpkeys -k=gnupg surfraw E7892D44 pgpkeys -k=pgp surfraw E7892D44 pgpkeys -k=mit surfraw E7892D44 surfraw-2.3.0/test/gutenberg.test0000644000175000017500000000003413235013533013763 00000000000000gutenberg twain Twain, Mark surfraw-2.3.0/test/genbugs.test0000644000175000017500000000003713235013533013436 00000000000000genbugs ALL surfraw bugs found surfraw-2.3.0/test/w3link.test0000644000175000017500000000007713235013533013217 00000000000000w3link http://www.miromiro.com/surfraw/index.html Valid links! surfraw-2.3.0/test/amazon.test0000644000175000017500000000056513235013533013277 00000000000000amazon -search=books philip pullman His Dark Materials amazon -country=ca philip pullman His Dark Materials amazon -country=cn philip pullman His Dark Materials amazon -country=de philip pullman His Dark Materials amazon -country=fr philip pullman His Dark Materials amazon -country=jp philip pullman His Dark Materials amazon -country=uk philip pullman His Dark Materials surfraw-2.3.0/test/pubmed.test0000644000175000017500000000005013235013533013253 00000000000000pubmed fluoxetine Items: 1 to 20 of \d+ surfraw-2.3.0/test/macports.test0000644000175000017500000000007313235013533013634 00000000000000macports surfraw Revolutionary Front Rage Against the Web surfraw-2.3.0/test/finkpkg.test0000644000175000017500000000016713235013533013441 00000000000000finkpkg surfraw Revolutionary Front Rage Against the Web finkpkg -pkg=surfraw Revolutionary Front Rage Against the Web surfraw-2.3.0/debian/0000755000175000017500000000000013235013643011430 500000000000000surfraw-2.3.0/debian/control0000644000175000017500000000620113235013533012750 00000000000000Source: surfraw Section: web Priority: optional Maintainer: Debian surfraw maintainers Uploaders: Christian Surchi , Ian Beckwith Standards-Version: 3.9.5 Build-Depends: debhelper (>= 7) Vcs-Git: git://anonscm.debian.org/surfraw/surfraw.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=surfraw/surfraw.git Homepage: http://surfraw.alioth.debian.org Package: surfraw Architecture: all Depends: ${misc:Depends}, lynx | www-browser Recommends: surfraw-extra (>> 2.2.7-1), links | elinks | elinks-lite | w3m, curl | wget | libwww-perl Breaks: surfraw-extra (<= 2.2.7-1) Suggests: screen Description: fast unix command line interface to WWW Surfraw - Shell Users' Revolutionary Front Rage Against the World Wide Web . Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, dejanews, freshmeat, research index, slashdot and many others from the false-prophet, pox-infested heathen lands of html-forms, placing these wonders where they belong, deep in unix heartland, as god loving extensions to the shell. . Surfraw abstracts the browser away from input. Doing so lets it get on with what it's good at. Browsing. Interpretation of linguistic forms is handed back to the shell, which is what it, and human beings are good at. Combined with incremental text browsers, such as links, w3m (or even lynx), and screen(1), or netscape-remote a Surfraw liberateur is capable of research speeds that leave GUI tainted idolaters agape with fear and wonder. Package: surfraw-extra Architecture: all Depends: surfraw, ${misc:Depends}, lynx | www-browser, libwww-opensearch-perl, libwww-perl, libhtml-parser-perl Recommends: links | elinks | elinks-lite | w3m | w3m-ssl Suggests: screen Breaks: surfraw (<< 2.1.7) Description: extra surfraw search tools with heavy dependencies surfraw-extra contains extra website search tools for surfraw that have large dependency trees. Currently surfraw-extra only contains support tools for the opensearch elvi: . opensearch-discover - find an opensearch link from a URL. opensearch-genquery - construct a search URL from an opensearch description . Surfraw - Shell Users' Revolutionary Front Rage Against the World Wide Web . Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, dejanews, freshmeat, research index, slashdot and many others from the false-prophet, pox-infested heathen lands of html-forms, placing these wonders where they belong, deep in unix heartland, as god loving extensions to the shell. . Surfraw abstracts the browser away from input. Doing so lets it get on with what it's good at. Browsing. Interpretation of linguistic forms is handed back to the shell, which is what it, and human beings are good at. Combined with incremental text browsers, such as links, w3m (or even lynx), and screen(1), or netscape-remote a Surfraw liberateur is capable of research speeds that leave GUI tainted idolaters agape with fear and wonder. surfraw-2.3.0/debian/source/0000755000175000017500000000000013235013643012730 500000000000000surfraw-2.3.0/debian/source/format0000644000175000017500000000001413235013533014054 000000000000003.0 (quilt) surfraw-2.3.0/debian/copyright0000644000175000017500000000737013235013533013310 00000000000000Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: surfraw Upstream-Contact: Surfraw-Devel Source: https://gitlab.com/surfraw/Surfraw Comment: This package has initially been debianized by Christian Surchi since Sat, 5 Aug 2000 18:59:30 +0200. . surfraw has originally been developed by Julian Assange , and was originally downloaded from ftp://ftp.netbsd.org/pub/NetBSD/misc/proff/ . Since July 2003 its development has continued through the surfraw project, you're welcome to contribute. Files: * Copyright: Copyright (c) 2003-2018 The Surfraw-Devel team Copyright (c) 2000-2001 Julian Assange Copyright (c) 2001 Australian Institute for Collaborative Research Copyright (c) 2000 Melbourne Institute for Advanced Study License: PD The copyright holders listed above assert no rights on this release of the software ``surfraw'' and thereby explicity place this release into the public domain. Do what you will. Files: missing Copyright: © 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc. License: GPL-2+ | other As a special exception to the GNU General Public License, if you distribute this file as part of a program that contains a configuration script generated by Autoconf, you may include it under the same distribution terms that you use for the rest of that program. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2' Files: INSTALL Copyright: © 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. License: other This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Files: mkinstalldirs Copyright: Author: Noah Friedman License: PD # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain Files: install-sh Copyright: © 1994 X Consortium License: other Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other deal- ings in this Software without prior written authorization from the X Consor- tium. . FSF changes to this file are in the public domain. Files: Makefile.in */Makefile.in Copyright: © 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. License: other This Makefile.in is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved. surfraw-2.3.0/debian/surfraw-extra.install0000644000175000017500000000050313235013533015546 00000000000000usr/share/doc/surfraw/AUTHORS usr/share/doc/surfraw-extra usr/share/doc/surfraw/NEWS usr/share/doc/surfraw-extra usr/share/doc/surfraw/changelog usr/share/doc/surfraw-extra usr/share/doc/surfraw/README usr/share/doc/surfraw-extra usr/share/doc/surfraw/NEWS.Debian usr/share/doc/surfraw-extra surfraw-2.3.0/debian/docs0000644000175000017500000000005013235013533012214 00000000000000AUTHORS HACKING NEWS README TODO banner surfraw-2.3.0/debian/NEWS0000644000175000017500000000047313235013533012051 00000000000000surfraw (2.1.7) unstable; urgency=low The opensearch elvis has been split off into a new package: surfraw-extra. This is because it depends on packages that pull in a large tree of dependencies that not all users will want to install. -- Ian Beckwith Sun, 02 Sep 2007 00:06:07 +0100 surfraw-2.3.0/debian/watch0000644000175000017500000000011013235013533012367 00000000000000version=3 https://gitlab.com/surfraw/Surfraw dist/surfraw-(.*)\.tar\.gz surfraw-2.3.0/debian/surfraw-extra.files0000644000175000017500000000006713235013533015207 00000000000000/usr/bin/opensearch* /usr/share/man/man1/opensearch-* surfraw-2.3.0/debian/rules0000755000175000017500000000440713235013533012433 00000000000000#!/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 # 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 --with-text-browser=www-browser --with-graphical-browser=sensible-browser AWK=awk touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/surfraw. $(MAKE) install DESTDIR=$(CURDIR)/debian/surfraw/ # Build architecture-dependent files here. binary-arch: build install # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot mkdir debian/surfraw/etc/bash_completion.d/ install -m 644 surfraw-bash-completion debian/surfraw/etc/bash_completion.d/surfraw dh_installdocs dh_installchangelogs ChangeLog dh_installexamples examples/README examples/uzbl_load_url_from_surfraw # copy shared doc files dh_install --sourcedir=debian/surfraw -psurfraw-extra # move files that are in surfraw-extra dh_movefiles --sourcedir=debian/surfraw -psurfraw-extra dh_link dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure surfraw-2.3.0/debian/compat0000644000175000017500000000000213235013533012544 000000000000006 surfraw-2.3.0/debian/README.Debian0000644000175000017500000000163013235013533013407 00000000000000Previous releases placed the elvi (tools to search websites) in /usr/bin, which caused namespace problems. Surfraw has been rearranged so the elvi are in a separate directory (/usr/lib/surfraw) and no longer in your path. To run an elvis now, use: surfraw elviname [options] searchterms sr is an alias for surfraw, so you could do, for example: sr google -lucky my 200 monkeys If you wish to retain the old behaviour of running elvi directly, use surfraw-update-path(1) to append /usr/lib/surfraw to your shell's PATH (or optionally, all users and/or all known shells) If you ran surfaw-update-path when version 2.0-1 was installed, you will need to run it again, twice, to update your config files to the new location. First run it with -remove, to remove the existing path, then with -add to add the new path. Remember you will need source your config files (or log out and in again) for this to take effect. surfraw-2.3.0/debian/changelog0000644000175000017500000005321113235013533013222 00000000000000surfraw (2.3.0-1) unstable; urgency=low * New upstream version * Select Perl version at buildtime (Mark Meyer) * Remove lynx-cur (Closes: #882286) * Packages the https elvi -- Jason Ryan Sat, 13 Jan 2018 18:52:10 +0000 surfraw (2.2.9-1) unstable; urgency=low * New upstream version + yandex: Fix bashism (Closes: #690615). + rae: Fix URL (Closes: #680138). * Standards-Version: 3.9.5 (no changes). * update debian/copyright. * switch to source format 3.0 (quilt). * update Vcs-Browser fields. -- Ian Beckwith Tue, 10 Dec 2013 17:03:19 +0000 surfraw (2.2.8-1) unstable; urgency=low * 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. -- Ian Beckwith Tue, 12 Jul 2011 01:31:52 +0100 surfraw (2.2.7-1) unstable; urgency=low * New upstream version. + fixed imdb elvi (Closes: #577263). * Standards-Version: 3.8.4 (no changes). * Add ${misc:Depends} to dependencies. -- Ian Beckwith Fri, 16 Apr 2010 20:43:27 +0100 surfraw (2.2.6-1) unstable; urgency=low * New upstream version. + Only use first matching bookmark (Closes: #530786). + Fix debsec (patch from Moritz Muehlenhoff) (Closes: #550741). * Remove Moritz from Uploaders (per #550741), thanks for your work!. * debian/rules: call dh_installexamples to install examples/ dir. * debian/control: + update vcs- fields to point to new git repo. + Standards-Version: 3.8.3 (No changes). + add Recommends: curl | wget | libwww-perl for -o. + Remove Conflicts/Replaces: surfaw, this transition was complete many releases ago. -- Ian Beckwith Fri, 20 Nov 2009 03:34:34 +0000 surfraw (2.2.5-1) unstable; urgency=low * New upstream version. * Removed Thomas Smith from Uploaders (Closes: #519378). Thanks for your work!. * Updated my email address in Uploaders. * Fixed VCS-Browser URL (Closes: #528299). * Removed DM-Upload-Allowed header. * Standards-Version: 3.8.1 (no changes). -- Ian Beckwith Wed, 13 May 2009 02:09:49 +0100 surfraw (2.2.4-1) unstable; urgency=low * New upstream version. * postrm: add 'set -e'. * debian/copyright: + Update copyright years to include 2009. + point to right GPL link (NB only the file 'missing' is GPLed, most of the package is PD). -- Ian Beckwith Sun, 01 Mar 2009 02:30:59 +0000 surfraw (2.2.3-1) unstable; urgency=low * New upstream version. + Now defaults to graphical mode, see surfraw(1) for how to change it back. * Change default text browser to www-browser and default graphical browser to sensible-browser. -- Ian Beckwith Tue, 26 Aug 2008 22:36:24 +0100 surfraw (2.2.2-3) unstable; urgency=low * Backport slinuxdoc fix from 2.2.3 prerelease. -- Ian Beckwith Fri, 25 Jul 2008 05:14:30 +0100 surfraw (2.2.2-2) unstable; urgency=medium * google: fix bashism and quote more variable expansions (Closes: #489902). Thanks to Philip Armstrong and John Briggs. * Reformat debian/copyright to keep lintian happy. -- Ian Beckwith Sat, 19 Jul 2008 00:50:33 +0100 surfraw (2.2.2-1) unstable; urgency=low * New upstream version: + fix url escaping (Closes: #487430). + surfraw-update-path: fix csh support (Closes: #484871). * Recommends: Drop w3m-ssl (folded into w3m) and lynx-cur (not in lenny) (Closes: #471359). * surfraw-extra: improve long description (Closes: #471321). * Standards-Version: 3.8.0 (no changes). * Remove linda override. * Add watch file. -- Ian Beckwith Thu, 03 Jul 2008 01:22:36 +0100 surfraw (2.2.1-2) unstable; urgency=low * Remove my old email address from Uploaders. -- Ian Beckwith Tue, 11 Mar 2008 14:07:35 +0000 surfraw (2.2.1-1) unstable; urgency=low * New upstream release. + bashisms removed (Closes: #465361, #468139). * debian/rules: move .deb building to binary-indep: target. * debian/compat: bump to 6. * debian/control: + DM-Upload-Allowed: yes merged from Debian-only 2.1.7-1 (see below). Dropped XS- prefix, no longer needed. + Recommends: add elinks | elinks-lite to existing browser alternatives. + Uploaders: update my email address. + Standards-Version: 3.7.3 (no changes). + Build-Depends: Bump debhelper version to >= 6. + Vcs-Cvs/Vcs-Browser: remove XS- prefix and -d workaround. + Homepage: added. * debian/changelog: merged Moritz's debian-only 2.1.7 release changelog. * debian/linda.overrides: remove exec-not-elf-or-script tag now file(1) is fixed. * debian/copyright: update, use machine-interpretable format. -- Ian Beckwith Tue, 11 Mar 2008 14:07:08 +0000 surfraw (2.2.0-1) UNRELEASED; urgency=low * Actual first new upstream release. See changelog.gz for upstream changes, like a normal package. * debian/rules: Use $(CURDIR) instead of `pwd`. * debian/copyright: updated copyright dates. -- Ian Beckwith Tue, 11 Sep 2007 03:41:09 +0100 surfraw (2.1.8-1) UNRELEASED; urgency=low * First proper upstream release of the surfraw-devel version. After this release non-debian changes will be logged in the upstream changelog.gz. * Split off opensearch into new package: surfraw-extra as it has a huge dependency tree that not everyone will want to install. * Fixed "sr -options bookmark" (excessive quoting). * New elvi: + archpkg - search Arch Linux packages. Thanks to Simon Ernst. + port - look up a TCP/UDP port on seifried.org/security/ports. * Fixed elvi + debbugs: fixed help formatting. + debcontents - new options * Fixed tests: + austlii - (since when does a legal db not contain "tort"?). + deblists - -security-announce not indexed (#440347), so we search for WNPP posts on -devel. + debpackages. + sunsolve - added cookie to accept license. + w3html - validator will not validate itself. * runtests (see test/README): + Added cookie support. + Added support for skipping tests with SKIP. + Abort if libwww-perl not installed. + Documented changes in test/README. * Makefile.am: removed debian/ files from EXTRA_DIST, they should be in the debian patch not the main tarball. * Bumped debhelper compat level to 5. * Really updated to automake-1.10. * Updated AUTHORS, NEWS, README, HACKING, ChangeLog, NEWS.Debian. -- Ian Beckwith Fri, 07 Sep 2007 00:18:38 +0100 surfraw (2.1.7) unstable; urgency=low * Add "XS-DM-Upload-Allowed: yes", so that Ian can upload further updates on his own. -- Moritz Muehlenhoff Sun, 13 Jan 2008 23:23:30 +0100 surfraw (2.1.6) unstable; urgency=low * New elvi: + codesearch - search google code search. + debwiki - search wiki.debian.org and women.debian.org/wiki. + lastfm - search last.fm. + musicbrainz - search musicbrainz.org. + opensearch - search sites that provide an OpenSearch description: - Install helper scripts opensearch-discover and opensearch-genquery to /usr/bin. - Add Dependencies on libwww-opensearch-perl, libwww-perl and libhtml-parser-perl. - Makefile.am: replaced explicit rule for surfraw-update-path.1 with a static pattern rule for making man pages from perl scripts. * Fixed elvi: + amazon - fixed example usage. + cia - switched to https. + cite - fixed URL and options. + debpackages - updated ubuntu distro names. + debcontents - updated ubuntu distro names. + freebsd - fixed help formatting. + netbsd - fixed mailing list searches. + openbsd - fixed PR search URL. + slinuxdoc - fixed URLs. + sundocs - fixed URLs. + woffle - updated URLs to match woffle 2.9a. * Removed elvi: jake - site shut down January 2007. * Implemented test suite - 'make test' or see test/README. * Fixed make distcheck. * Updated to automake 1.10. * debian/rules: stopped ignoring return code of 'make distclean'. * Updated Copyright dates to 2007. * Add Vcs-Cvs and Vcs-Browser fields to debian/control. -- Ian Beckwith Sat, 30 Jun 2007 22:15:14 +0100 surfraw (2.1.5) unstable; urgency=low * Added myself to Uploaders. * Ack not-really-NMU (Closes: #354737). * Applied bash completion fixes, thanks to Justin B. Rye (Closes: #361668). * wikipedia: disable requoting; use Go rather than Search. * Fixes to ixquick elvi, thanks to Aparna Jaitly. * debpackages/debcontents: new options + ubuntu support with -u. * New elvi: scholar - search google scholar. * New elvi: discogs, thanks to Patroklos Argyroudis. * Thanks to James Rowe for the following patches: + Move W to /usr/lib/surfraw (see http://bugs.gentoo.org/show_bug.cgi?id=58955). + New elvi: genpkg for Gentoo package search. + Generate elvi list on demand and eliminate surfraw_elvi.list + Make elvidir configurable. + Make sysconfdir configurable. + Fix 'make dist' and 'make distcheck'. + Remove unused browser checks. + Drop AC_CANONICAL_HOST - not needed. * New global option: -p / -print: just print search url. * Remove config.guess and config.sub - not needed. * Remove config.{guess,sub} updating logic from debian/rules. * postrm: remove /etc/surfraw_elvi.list if it exists. * Convert debhelper Build-Depends-Indep: to Build-Depends:. * Standards-Version: 3.7.2 (No changes). * Updated Copyright dates to 2006. * Added linda override exec-not-elf-or-script for /usr/bin/surfraw due to erroneous file(1) output (See: #369977). * Tweak HACKING appendix 1 to remove need to build surfraw_elvi.list. -- Ian Beckwith Tue, 26 Sep 2006 04:22:53 +0100 surfraw (2.1.4) unstable; urgency=low * Ian Beckwith : + changed elvi: - debsec: fix tabbing (Closes: #354737). - debbugs: updated search options. + new elvi: - ixquick (Thanks to Aparna Jaitly). - ctan. - fsfdir. - gutenberg. - wayback. + Makefile.include: changed sed invocation to work with both old and new make(1). + debian/rules install: removed spurious mkdir. + removed debian/{prerm,postinst}. + Switched to debhelper compat level 4. + HACKING: corrected appendix 1. -- Ian Beckwith Fri, 17 Mar 2006 22:26:37 +0000 surfraw (2.1.3) unstable; urgency=high * Urgency high, as it renders surfraw uninstallable * Really, really remove debconfage (Closes: #354263) -- Moritz Muehlenhoff Fri, 24 Feb 2006 23:00:09 +0100 surfraw (2.1.2) unstable; urgency=low * Moritz Muehlenhoff : + Fix FTBFS due to make changes (Patch by Matt Kraai) (Closes: 353314) + Fix zsh completion for yubnub (Patch by Micah Anderson) (Closes: #341872) + Remove debian/po to prevent further translations in vain. Sorry for the wasted work on the Swedish translation, Daniel Nylander! (Closes: #338149, #336687) + Changed maintainer address to "Debian surfraw maintainers", added Christian, Thomas and myself to uploaders + New elvis: debsec (for the Debian security tracker) -- Moritz Muehlenhoff Thu, 23 Feb 2006 16:49:55 +0100 surfraw (2.1.1) unstable; urgency=low * Moritz Muehlenhoff : + Removed debconf information about new elvi structure, now that Sarge has been released with it. Moved it to README.Debian. (Closes: #313852, #312979, #319841, #319842) + New elvis: yubnub (by Iain D Broadfoot) (Closes: #315188) + Removed unused SURFRAW_p0rn option (Closes: #324166) + Bumped standards version (no changes required) + Change to a native package, most of the elvis are now more or less Debian specific anyway -- Moritz Muehlenhoff Fri, 29 Apr 2005 16:20:39 +0200 surfraw (2.1.0-1) unstable; urgency=medium * Ian Beckwith : + New elvi: dmoz, w3html, w3link, w3css, w3rdf. + New elvi: rae (by Ruben Pollan ). + 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 : + 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 -- Thomas Smith Wed, 20 Apr 2005 17:00:59 -0500 surfraw (2.0.2-2) unstable; urgency=low * Applied Brian Mcdonald's workaround for bash bug (Closes: #269982) -- Christian Surchi Mon, 13 Sep 2004 16:34:53 +0100 surfraw (2.0.2-1) unstable; urgency=low * Several patches from Justin B Rye: + Add bash completion (Closes: #240629) + Add some missing elvis in surfraw_elvi.list (Closes: #241079) + Don't set DISPLAY when in text-only mode (Closes: #235251) + Correctly test for text-mode in w3_browse_url() + Readability improvements + Use argv[0] instead of computing it through basename * Removed elvi: + sharereactor: has been closed down * Added French debconf template by Christian Perrier (Closes: #236088) * Added German debconf template by Helge Kreutzmann (Closes: #253800) * New elvi: debpts. * man page hyphenation fixes. * debian/control: + Dropped optional last part of Standards-Version. + Changed lynx to lynx-cur in Recommends to avoid confusing apt. + Added po-debconf to Build-Depends-Indep. * debian/rules clean: + enabled config.{guess,sub} update. + remove templates.merged. * HACKING: updated Appendix 1. * surfraw.conf.in: set SURFRAW_graphical_browser to x-www-browser (Closes: #256201) -- Ian Beckwith Thu, 29 Jul 2004 15:31:10 +0100 surfraw (2.0.1-1) unstable; urgency=low * Moved elvi to /usr/lib/surfraw (Closes: #230276) * Updated docs for new elvi location * Changed man page section for all elvi to 1sr (Closes: #230056) * Fixed surfraw help text (Closes: #230109) * Added man page links for pgpkeys, ebay and sharereactor * Added linda override (and surfraw.dirs) for usr-lib-in-arch-all * Added debhelper tokens to prerm/postinst (they were in released 2.0-1 but not CVS) * Rewrote man page surfraw.1.in, added man page elvi.1sr.in Both go via autoconf. * Removed old debian/surfraw.1 * Updated debian/surfraw.links to point elvi to elvi.1sr.gz * Updated AUTHORS to hopefully include every contributor, ever. * Changed a few "def"s to "defyn"s in surfraw.conf.in * Updated README with text from new man page. * Added "Copyright (c) 2003, 2004 The Surfraw-Devel Team " to the list of copyright holders. * Fixed quoting so sr google foo "bar baz" qux works * Makefile.am: Added missing files to EXTRA_DIST * Added a debconf note (only visible if upgrading from 2.0-1) explaining the elvi have moved again. * 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 (Closes: #231939). * 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 * Synced NAMESPACE branch with HEAD Please use the main HEAD branch from now on. * links.IN: made links relative * Converted debconf to po-debconf * Eliminated templates.IN, as it confused po-debconf * Deautoconfiscated the debian directory, as only templates went through autoconf -- Ian Beckwith Tue, 10 Feb 2004 03:33:14 +0000 surfraw (2.0-1) unstable; urgency=low * Ack NMUs. (Closes: #200164, #201229, #209155, #113148, #119357, #131661) * ..and.. (Closes: #149584, #156466, #141243, #154304, #164206, #141242) * Moved elvi to /usr/bin/surfraw-elvi. (Closes: #209155, #192869, #201175) * Provided surfraw-update-path to put new dir in path. * Added sr as alias to surfraw. * Added bookmark support and /etc/surfraw.bookmarks. * New elvi: alioth, rfc, scpan, deblists. (Closes: #134498) plus leodict and happypenguin by Moritz Muehlenhoff (Closes: #217799) and wikipedia, also by Moritz Muehlenhoff (Closes: #223953) and ebay, pgpkeys and sharereactor, also by Moritz Muehlenhoff * Fixed elvi: altavista, debcontents, excite, jake, scaleplus, slinuxdoc, sundocs, swhois, translate. * amazon: fixed test (Closes: #163903) and -country, removed tag-id stuff. * debcontents: changed options to SURFRAW_debcontents_*. * sourceforge: added -type and -exact options. * webster: added -t (thesaurus) option. * debbugs: added options. * Removed elvi: appwatch, ftpsearch, ftpfind, raging (sites defunct). * Updated Standards-Version to 3.6.1.0 * surfraw.in: - Applied Brian Nelson's "-remote openURL" patch (Closes: #165967). - Fixed browser selection (Closes: #118314). * google -l/-lucky support (Closes: #127078, #128544). * Added deja patch from Christian Garbs (Closes: #149600). * debian/rules: changed to use DESTDIR. * Closing non-bugs: - Complaint about correct behaviour (Closes: #173714). - Adds functionality already present in debcontents (Closes: #144080). - Obsoleted by sensible-browser (imho) (Closes: #155423). -- Ian Beckwith Sun, 9 Nov 2003 22:02:44 +0000 surfraw (1.0.7-3) unstable; urgency=low * Force default browser to sensible-browser (Closes: #119357) - This supercedes NMU changes (Closes: #200164, #201229, #149584) - Change default browser in manpage (Closes: #113148) * Rename stranslate back to translate (Closes: #141243) * Make woffle not look for /usr/local/bin/surfraw (Closes: #156466) * Add lynx to Recommends (Closes: #141242) * Make surfraw lintian-clean - Remove '(s)' from copyright - Remove /etc conffile entries * Kevin Kreamer did this work. -- Thomas Smith Thu, 4 Sep 2003 18:09:29 -0500 surfraw (1.0.7-2) unstable; urgency=low * The first "collaborative" release :) * Easy bugs first - fix type in README (Closes: #154304) - s/README/README.gz/ in manpage (Closes: #164206) * Added elvi for imdb, cddb, freedb and bbcnews written by Ian Beckwith. * changed "Author(s)" to "Author" in debian/copyright * removed debian/conffiles to prevent debhelper being so incredibly "helpful" as to inlude conffiles *twice* -- Christian Surchi Sat, 16 Aug 2003 17:02:03 +0000 surfraw (1.0.7-1) unstable; urgency=low * New upstream release * New debian/rules with DH_COMPAT=3 too * Elvi: linuxdoc renamed to slinuxdoc translate renamed to stranslate * Removed unuseful scripts in debian directory * Removed emacs settings in changelog -- Christian Surchi Sat, 2 Mar 2002 23:54:34 +0100 surfraw (1.0.4-1) unstable; urgency=low * New upstream release, surfraw becomes public domain * Support "--" option to end all options (Closes:#113429) * Added elvi for Debian bugs search (Closes:#70109) * Fixed typo (Closes:#100431) * Removed elvi: ircsearch, newscientist (Closes:#113004,#80099) -- Christian Surchi Thu, 25 Oct 2001 06:56:17 -0400 surfraw (1.0.2-2) unstable; urgency=low * linuxdoc renamed to linuxdoc.surfraw (Closes: #78994) * surfraw-translate renamed to translate.surfraw -- Christian Surchi Thu, 21 Dec 2000 10:54:45 -0500 surfraw (1.0.2-1) unstable; urgency=low * New upstream release * New and patched elvi (Closes:#70110) -- Christian Surchi Tue, 3 Oct 2000 15:49:08 +0200 surfraw (0.5.5-1) unstable; urgency=low * Initial Release. -- Christian Surchi Sat, 5 Aug 2000 16:56:47 +0200 surfraw-2.3.0/debian/postrm0000644000175000017500000000014713235013533012617 00000000000000#!/bin/sh set -e if [ -f /etc/surfraw_elvi.list ] then rm -f /etc/surfraw_elvi.list fi #DEBHELPER# surfraw-2.3.0/TODO0000644000175000017500000000015713235013533010617 00000000000000Fix currency and xxx Outstanding requests: (feel free to contribute!) www.northernlight.com -- search engine surfraw-2.3.0/examples/0000755000175000017500000000000013235013644012025 500000000000000surfraw-2.3.0/examples/hooks.lua0000644000175000017500000000144113235013533013570 00000000000000-- Using surfraw from elinks. To search using an elvi from -- the Go to URL dialog box, use the syntax "!elvis your -- search terms". E.g., to search for -- Wargames torrents in piratebay, type "!piratebay -- wargames" in the Go to URL dialog box. -- -- You need to have surfraw installed, obviously, and your -- lua install should have io.popen. function match (prefix, url) return string.sub (url, 1, string.len (prefix)) == prefix end function tosurfraw (str) return "surfraw -p " .. str .. " 2>/dev/null" end function goto_url_hook (url, current_url) if match ("!", url) then sr = tosurfraw (string.sub (url, 2)) urlfile = io.popen (sr) finalurl = urlfile:read('*all') urlfile:close() return finalurl else return url end end surfraw-2.3.0/examples/uzbl_load_url_from_surfraw.IN0000755000175000017500000000506313235013533017632 00000000000000#!/bin/bash # # # This script attempts to be the ultimate url opening script for UZBL. It # hopes to do this in the following way. It presents all surfraw bookmarks # and elvi in a dmenu, and uses surfraw to obtain a valid URL. If the first # word entered by the user (and thus returned by dmenu) contains a colon (:) # or a period (.), it assumes that the user entered a valid URL and just # immediately prints that, bypassing surfraw. # # As such, the script itself is stupid, and the awesomeness comes from dmenu # and surfraw. # # Example UZBL configuration: # # To open any url in the current UZBL instance: # bind o = sh 'uri=`$XDG_DATA_HOME/uzbl/scripts/uzbl_load_url_from_surfraw` && echo "uri $uri" > $4' # To open any url in a new UZBL instance: # bind t = sh 'uri=`$XDG_DATA_HOME/uzbl/scripts/uzbl_load_url_from_surfraw` && uzbl --uri $uri' # # # October 2009, Sumant Oemrawsingh # # TODO: Do we also want history? Titles of webpages and urls? Tags for bookmarks? # Default search engine. If we really are at a loss, use this DEFAULT_SEARCH=google # The location of the surfraw bookmark file if [ -n "$XDG_CONFIG_HOME" -a -e "$XDG_CONFIG_HOME/surfraw/bookmarks" ]; then BOOKMARKS="$XDG_CONFIG_HOME/surfraw/bookmarks" elif [ -e "$HOME/.config/surfraw/bookmarks" ]; then BOOKMARKS="$HOME/.config/surfraw/bookmarks" else BOOKMARKS="$HOME/.surfraw.bookmarks" fi # Colors for dmenu COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030" # Prompt for dmenu PROMPT="Open" # From load_url_from_bookmarks.sh: Use dmenu with vertical patch if available if dmenu --help 2>&1 | grep -q '\[-rs\] \[-ni\] \[-nl\] \[-xs\]' then DMENU="dmenu -i -xs -rs -l 10" # vertical patch else DMENU="dmenu -i" fi # Use surfraw to search for the words function search() { # Does surfraw know what to do with it? url=`surfraw -print $@` # If not, then use the default search engine if [ $? -ne 0 ] then url=`surfraw -print $DEFAULT_SEARCH $@` fi echo $url } # We assume that this is a URL function goto() { case "$1" in *:*) echo $1 ;; *) echo "http://$1" ;; esac } # Use dmenu to navigate through possible choices function present_menu() { elvi=`surfraw -elvi | grep -v -e ' ELVI:' -e '^W' | @AWK@ '{print $1}'` if [ -r "$BOOKMARKS" ] then elvi="$elvi $(@AWK@ '{print $1}' "$BOOKMARKS" 2>/dev/null)" fi echo "$elvi" | tr ' ' '\n' | sort | $DMENU -p "$PROMPT" $COLORS } present_menu | \ ( read car cdr test -z "$car" && exit 1 ( test -z "$cdr" && echo $car | fgrep -c '. :' > /dev/null && goto $car ) || search "$car $cdr" ) surfraw-2.3.0/examples/Makefile.in0000644000175000017500000002575213235013641014022 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SCRIPTS = $(noinst_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/mkinstalldirs \ README DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ELVIDIR = @ELVIDIR@ GRAPHICALBROWSER = @GRAPHICALBROWSER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ ISODATE = @ISODATE@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TEXTBROWSER = @TEXTBROWSER@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_SCRIPTS = uzbl_load_url_from_surfraw EXTRA_DIST = README uzbl_load_url_from_surfraw.IN hooks.lua CLEANFILES = uzbl_load_url_from_surfraw all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am .PRECIOUS: Makefile uzbl_load_url_from_surfraw: uzbl_load_url_from_surfraw.IN -rm -f $@ $@.tmp sed -e 's,@AWK\@,${AWK},g;' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: surfraw-2.3.0/examples/README0000644000175000017500000000035413235013533012624 00000000000000Useful example code. * hooks.lua Integrates surfraw with elinks (see elinks.cz). Contributed by Manolo Martínez * uzbl_load_url_from_surfraw Integrates surfraw with uzbl (see www.uzbl.org). Contributed by Sumant Oemrawsingh. surfraw-2.3.0/examples/Makefile.am0000644000175000017500000000045613235013533014003 00000000000000noinst_SCRIPTS = uzbl_load_url_from_surfraw EXTRA_DIST = README uzbl_load_url_from_surfraw.IN hooks.lua CLEANFILES = uzbl_load_url_from_surfraw uzbl_load_url_from_surfraw: uzbl_load_url_from_surfraw.IN -rm -f $@ $@.tmp sed -e 's,@AWK\@,${AWK},g;' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw-2.3.0/surfraw-bash-completion.IN0000644000175000017500000000257413235013533015137 00000000000000# -*- sh -*- bash programmable completion for Surfraw, v2.2 # This is for people who wish to use surfraw completion, without # installing the bash-completion package which sets this explicitly. shopt -s extglob _surfraw() { COMPREPLY=() local cur=${COMP_WORDS[COMP_CWORD]} local prev=${COMP_WORDS[COMP_CWORD-1]} local opts='-browser -elvi -escape-url-args -graphical \ -help -q -quote -text -version' local elvi="$(cut -f1 @sysconfdir@/surfraw.bookmarks ~/.surfraw.bookmarks 2>&- cd @ELVIDIR@ && echo * 2>&- [ -d ~/.surfraw.d ] && cd ~/.surfraw.d && echo * 2>&-)" if [[ $cur == -* ]] then COMPREPLY=( $( compgen -W "$opts" -- $cur ) ) # I can't see a way to get the =yes/=no parts to work... elif [[ $COMP_CWORD -eq 1 ]] then COMPREPLY=( $( compgen -W "$elvi" -- $cur ) ) # "sr go" for google elif [[ $prev == @(alioth|deb@(bugs|contents|packages|pts|sec)|freshmeat|fsfdir|sourceforge) ]] then COMPREPLY=( $(apt-cache --generate pkgnames $cur) ) # "sr debbugs 4" to check 44bsd-rdist bugs... elif [[ -x /usr/bin/look ]] # in bsdmainutils, "important" then COMPREPLY=( $(/usr/bin/look ${cur:-''}) ) # "sr l vy" to find the German for "vying" else COMPREPLY=( $( compgen -o default -- $cur) ) # copout fi return 0 } # test first in case removed-but-unpurged type -p surfraw >/dev/null 2>&1 && complete -F _surfraw surfraw sr surfraw-2.3.0/install-sh0000755000175000017500000001572213235013533012137 00000000000000#!/bin/sh # # install - install a program, script, or datafile # # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd=$cpprog shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "$0: no input file specified" >&2 exit 1 else : fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d "$dst" ]; then instcmd=: chmodcmd="" else instcmd=$mkdirprog fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f "$src" ] || [ -d "$src" ] then : else echo "$0: $src does not exist" >&2 exit 1 fi if [ x"$dst" = x ] then echo "$0: no destination specified" >&2 exit 1 else : fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d "$dst" ] then dst=$dst/`basename "$src"` else : fi fi ## this sed command emulates the dirname command dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` IFS=$oIFS pathcomp='' while [ $# -ne 0 ] ; do pathcomp=$pathcomp$1 shift if [ ! -d "$pathcomp" ] ; then $mkdirprog "$pathcomp" else : fi pathcomp=$pathcomp/ done fi if [ x"$dir_arg" != x ] then $doit $instcmd "$dst" && if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename "$dst"` else dstfile=`basename "$dst" $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename "$dst"` else : fi # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up temp files at exit. trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 # Move or copy the file name to the temp name $doit $instcmd "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && # Now remove or move aside any old file at destination location. We try this # two ways since rm can't unlink itself on some systems and the destination # file might be busy for other reasons. In this case, the final cleanup # might fail but the new file should still install successfully. { if [ -f "$dstdir/$dstfile" ] then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" fi && # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit } surfraw-2.3.0/banner0000644000175000017500000000111113235013533011306 00000000000000 ______ _ _ ______ _______ ______ _______ _ _ _ / _____)(_) (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_) ( (____ _ _ _____) ) _____ _____) ) _______ _ _ _ \____ \ | | | || __ / | ___) | __ / | ___ || || || | _____) )| |___| || | \ \ | | | | \ \ | | | || || || | (______/ \_____/ |_| |_||_| |_| |_||_| |_| \_____/ Surfraw - Shell Users' Revolutionary Front Rage Against the Web Oh Baybe I need some Deep Linking Let us go Surfin' in the raw! surfraw-2.3.0/NEWS0000644000175000017500000005446313235013533010637 00000000000000 ______ _ _ ______ _______ ______ _______ _ _ _ / _____)(_) (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_) ( (____ _ _ _____) ) _____ _____) ) _______ _ _ _ \____ \ | | | || __ / | ___) | __ / | ___ || || || | _____) )| |___| || | \ \ | | | | \ \ | | | || || || | (______/ \_____/ |_| |_||_| |_| |_||_| |_| \_____/ Surfraw - Shell Users' Revolutionary Front Rage Against the Web Oh Baybe I need some Deep Linking Let us go Surfin' in the raw! N E W S Sat Jan 13 18:55:20 GMT 2018 - surfraw 2.3.0 * We are moving! This is the last release on Debian's platform. For all future development, please check out https://gitlab.com/surfraw/Surfraw * All elvi now use HTTPS + Elvi for sites that don't work with HTTPS have left the building: - cablesearch - dmoz - openports - opensearch - pasearch - rhyme - rpmsearch - scicom - scirus - wetandwild - yacy - yubnub * Select Perl version at buildtime (Mark Meyer) * Remove lynx-cur (closes #882286) Tue Dec 10 15:49:46 GMT 2013 - surfraw 2.2.9 * New elvi: + S - search using w3_custom_search (see below) + cisco - search Cisco documentation + debcodesearch - search Debian codebase + github - search github + gmane - search mailing lists + jquery - search jQuery documentation + mdn - search Mozilla Developer Network + mysqldoc - search MySQL documentation + oraclesearch - search Oracle documentation + pgdoc - search PostgreSQL documentation + phpdoc - search PHP documentation + pin - search pinboard.in + wolfram - search Wolfram Alpha + yacy - search YaCy P2P search engines, including ScienceNet * Changed elvi: + aur - uses HTTPS by default, use -no-https to disable + deblists * Removed options -author, -lists, -lang * added options -ml (message links) and -mv (list view) + duckduckgo: * removed -p (clashes with global print option), use -safe instead * stopped -l[ucky] from clobbering -lh + google: changed -g option to -G to avoid clash with -g for graphical view * Fixed elvi: ask, ctan, deli, genportage, jamendo, javasun, openbsd musicbrainz, rae, slashdot, slinuxdoc * Removed elvi for dead sites: happypenguin, scroogle, sunonesearch (replaced by oraclesearch) * w3_custom_search + elvi that use a search engine as a backend with site: and inurl: can now choose which search engine to use. So far, google and duckduckgo are supported, with duckduckgo the default. + Affected elvi: mdn, mysqldoc, netbsd, openbsd, pgdoc, slinuxdoc + To select on the commandline use -custom-search=google or -custom-search=duckduckgo + Or configure SURFRAW_customsearch_provider * New variable: SURFRAW_bookmark_search_elvis When using searchable bookmarks, if all else fails run this elvis. Defaults to google * New example elinks integration script in examples/hooks.lua. * Debian packaging now included in release, in debian/ dir. * Known problems at time of release + deblogs - down (hopefully) temporarily + yacy - demo portal down, ScienceNet still up + scicom - down, status unknown Tue Jul 12 00:46:02 BST 2011 - surfraw 2.2.8 * New elvi: + ads - search the SAO/NASA Astrophysics data system. + archwiki: search the arch wiki. + bugzilla - search various bugzillas, defaults to kernel. + cablesearch - search wikileaks cables + deli: search delicious.com. + duckduckgo - replace with better implementation + openports - search openbsd ports + pasearch - search Penny Arcade archives. + scirus, scitopia, worldwidescience - science searches + stack: search stackoverflow.com and friends. + yandex - russian web search. * Changed elvi: + archpkg: now supports options. + arxiv: quote queries for exact string matches. + ctan: Option -doc replaced by -id. Options no longer mutually exclusive. + codesearch, musicbrainz, rpmsearch: rewritten to match new site. Options have changed to match site, see help message. + debbugs: add -s as an alias for -search=src. + google: new options: * -v, -search=video: search video * -m, -search=maps: search maps * -n, -search=news: search news * -i: new shortcut for -search=images * -safe=default|off|moderate|strict: safe search + openbsd: support -misc and -tech. + opensearch: new option -r, uses remote redirector which means it can run without heavy dependencies. + pgpkeys: add more options, support more keyservers, default to sks-keyservers.net. + translate: added Google Translate support. + wayback: advanced search is broken, rip out all options and use basic search. + wikipedia: new option -d, uses remote redirector to search both wikipedia and deletionpedia. use -fallback=wikipedia|deletionpedia to customise behaviour. * Fixed elvi: archpkg, arxiv, cia, codesearch, ctan, javasun, lastfm, musicbrainz, netbsd, rpmsearch, w3link, yahoo. * Removed elvi: + altavista: is now just a front-end to yahoo. RIP. + cddb: gracenote made the "hard decision" to remove the website search. sigh. + fast: another yahoo front-end. + filesearching: refuses to work without 'Referer:' header. + port: site gone * Support -local-help, --local-help or -lh to get elvi-specific help without displaying the global options. This works for all elvi and the main surfraw script. * Support -h as a synonym for -help. * Improved listing of elvi. * Default to surfraw_graphical_remote=no, as chromium doesn't support "-remote openURL". * Bookmark names are now an exact match not a substring match. * Support BSD/POSIX make. * README: added INTEGRATION section on uzbl and pentadactyl. Thu May 6 20:20:09 BST 2010 - surfraw 2.2.7 * New elvi (surfraw now has over one hundred elvi!): + by tczy: * bing: Search using Microsoft's Bing. + by Ivy Foster: * bookfinder: Search for books using www.bookfinder.com. * bugmenot: Bypass compulsory web registration with bugmenot.com. + by Ian Beckwith: * duckduckgo: Search the web via duckduckgo.com. * scroogle: Search Google anonymously via www.scroogle.org. + by Simone Fittabile: * jamendo: Search Jamendo: free music with Creative Commons licenses * Removed elvi: genpkg (use genportage instead). * Fixed elvi: + cnn + imdb (thanks to Sadako) + bbcnews (thanks to Sumant Oemrawsingh and James Rowe) * aur: added options (thanks to Ivy Foster) * wikipedia, ixquick: support https. Thanks to Simone Fittabile. * debwiki: remove -w, Debian Women wiki is being merged into main Debian wiki. Thanks to Simone Fittabile. * Improved support for screen(1). Thanks to Ivy Foster: + Support for using tmux as $SURFRAW_screen. + Added `-ns|-newscreen' switch for setting $SURFRAW_new_screen. + Added $SURFRAW_screen_args for passing arguments to the defined screen tool. * uzbl_load_url_from_surfraw: fix menu. Thanks to Sumant Oemrawsingh. Fri Nov 20 03:34:19 GMT 2009 - surfraw 2.2.6 * New elvi: + by Sumant Oemrawsingh: * cliki - search the common lisp wiki. * l1sp - search lisp documentation. * mathworld - search Wolfram MathWorld. * mininova - search mininova for torrents. * youtube - search youtube for videos. + by Simone Fittabile: * acronym - find acronyms * gcache - search google cache. + by Nick White: * genbugs - search gentoo bug tracker + by Ian Beckwith: * debpkghome - view home page of a debian package. * debvcsbrowse - browse vcs of a debian package * rpmsearch - search for packages in rpm-based distros. * finkpkg - search Fink packages. * macports - search macports packages. * Move config files to follow XDG basedir spec This means that if your global config was in /etc/surfraw.conf it is now in /etc/xdg/surfraw/conf, and local config is now in $HOME/.config/surfraw/conf. The same applies to bookmarks. See README for details on configuring config locations, and http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html for the gory details. The old locations are still supported for backwards-compatibility. * Support per-user elvi in $HOME/.config/surfraw/elvi/ Patch by James Rowe, idea by Sumant Oemrawsingh. * Added -o | -o=FILE option, to fetch URL and dump to stdout or FILE. * Modified elvi: + freebsd: new options -psearch=TYPE -psection=SEC to conduct a search of type TYPE in section SEC of ports. + netbsd: new option -ps to search ports + openbsd: new option -ps to search ports + debsec: fixed (Thanks to Moritz Muehlenhoff, for this and all his other work). + cia: fixed. * Added examples/uzbl_load_url_from_surfraw, to integrate surfraw with uzbl (uzbl.org), thanks to Sumant Oemrawsingh. Wed May 13 02:30:21 BST 2009 - surfraw 2.2.5 * Replaced scaleplus elvi with comlaw. * rfc: use HTML for RFCs and BCPs. * Support '--' to indicate end of options, so, for instance, "sr google -g -- foo -bar" works. * debpackages, debcontents: update ubuntu release names. Sun Mar 1 02:12:14 GMT 2009 - surfraw 2.2.4 * New elvi: + ntrs, scicom, springer - Thanks to Wim Van Hoydonck. + urban - Thanks to J. R. Mauro. + aur - Thanks to René Reigel. * excite: fixed. * cite: changed to use citeseerx.ist.psu.edu, the old citeseer is no longer being updated. * amazon: fixed; updated categories. Sat Sep 13 20:40:01 BST 2008 - surfraw 2.2.3 * Surfraw now defaults to graphical mode. See surfraw(1) for how to change the default back. * Search for default browsers during build. This can be overridden by passing --with-text-browser=BROWSER and --with-graphical-browser=BROWSER to ./configure. * New elvis: piratebay, genportage. Thanks to J.R. Mauro. * Detect which awk to use. * Fixed slinuxdoc and webster. * Removed bashisms. * Fixed uninstall. * Add --disable-sr option to ./configure to disable installing the 'sr' symbolic link, to avoid clashes with the SR programming language. Thu Jul 3 08:47:14 BST 2008 - surfraw 2.2.2 * New elvis: + arxiv - Search the Los Alamos Science E-Print Archive replaces xxx which was just a stub (thanks to John Gruenenfelder). + javasun - search Java API Docs (thanks to James TD Smith) * Fixed elvis: + debpackages/debcontents: update options and distributions, add -a options to use archive.debian.net. + wetandwild: switched to weather.com, as yahoo now uses AJAX. Command line options and SURFRAW_weather_* variables no longer supported. + austlii: fixed search URL, default method is now 'auto'. + port: original site is back. + translate: fixed URLs. * Removed elvis: + sundocs: use sunonesearch. + xxx: replaced by arxiv. * surfraw: fix w3_url_escape quoting (thanks Micah Anderson) * surfraw-update-path: fix csh syntax (thanks John Gruenenfelder) * google: Add -country option to specify country. Respects SURFRAW_lang variable (Thanks to James TD Smith). Sun Mar 9 19:24:26 GMT 2008 - surfraw 2.2.1 * New elvi: + lsm - Search the Linux Software Map. + sunonesearch - Search Sun's One Search (replaces sunsolve). * Fixed elvi: cddb, cnn, debcontents, deblists, debpackages, freedb, fsfdir, genpkg, and yubnub (thanks for the latter to Nathaniel Heinrichs). * Removed elvis: sunsolve (replaced by sunonesearch). * amazon, ebay, translate: expanded language/country list. * Added new configuration variable SURFRAW_lang. Elvi that support specifying language or country will use this as a default. If used, it should be set to an ISO 2-letter country code (eg uk, de, ca). Thanks to Simon Ernst for the idea. * Fixed quoting single quotes in URLs (thanks to Alexander Becher for the patch). Thu Sep 6 21:59:35 BST 2007 - surfraw 2.2.0 * Resumed making upstream releases. Surfraw is now maintained by the Debian Surfraw-Devel Team. Please report bugs to , and feel free to join us on the list. There have been many changes since the last official release. New elvi: alioth archpkg bbcnews cddb cia codesearch ctan cve deblists deblogs debpts debsec debwiki discogs dmoz ebay etym foldoc freedb fsfdir genpkg gutenberg happypenguin imdb ixquick lastfm leodict musicbrainz opensearch pgpkeys port rae rfc scholar scpan w3css w3html w3link w3rdf wayback wikipedia yubnub Removed elvi: appwatch britannica ftpfind ftpsearch jake raging swhois Elvi now live in /usr/lib/surfraw (or /usr/local/lib/surfraw) Use surfraw-update-path to add this directory to your path or prefix elvi with sr or surfraw, eg "sr google foo bar". Bookmarks can be defined in /etc/surfraw.bookmarks or ~/.surfraw.bookmarks. See /etc/surfraw.bookmarks for the format. Bookmarks can be used with "sr [options] bookmarkname". There is now a test suite. "make test" to run it or see test/README. For a full list of changes since the last release, see debian/changelog. From this release onwards, changes will be logged in ./ChangeLog as normal. Tur Mar 30 01:21:03 CEST 2004 - surfraw 2.0.2 * Added bash completion support by Justin B Rye * Do not set $DISPLAY when running in text mode * Removed sharereactor elvi Tue Feb 10 04:01:40 GMT 2004 - surfraw 2.0.1 Please note that the elvi have moved again, to /usr/lib/surfraw If you used surfraw-update-path from version 2.0 to add the elvi directory to your path, you will need to run it again, first with -remove to remove the old path, then again with -add. To change your path you will need to either log out and in again or source the relevant config files. * Moved elvi to /usr/lib/surfraw * Updated docs for new elvi location * Changed man page section for all elvi to 1sr * Fixed surfraw help text * Added man page links for pgpkeys, ebay and sharereactor * Added linda override (and surfraw.dirs) for usr-lib-in-arch-all * Added debhelper tokens to prerm/postinst (they were in released 2.0-1 but not CVS) * Rewrote man page surfraw.1.in, added man page elvi.1sr.in Both go via autoconf. * Removed old debian/surfraw.1 * Updated debian/surfraw.links to point elvi to elvi.1sr.gz * Updated AUTHORS to hopefully include every contributor, ever. * Changed a few "def"s to "defyn"s in surfraw.conf.in * Fixed quoting so sr google foo "bar baz" qux works * Makefile.am: Added missing files to EXTRA_DIST * Added a debconf note (only visible if upgrading from 2.0-1) explaining the elvi have moved again * 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 * synced NAMESPACE branch with HEAD Please use the main HEAD branch from now on. * links.IN: made links relative * Converted debconf to po-debconf * Eliminated templates.IN, as it confused po-debconf * Deautoconfiscated the debian directory, as only templates went through autoconf Tue Dec 23 03:19:58 GMT 2003 - surfraw 2.0 New development team, see http://alioth.debian.org/projects/surfraw * Moved elvi to /usr/bin/surfraw-elvi. (Closes: #209155, #192869, #201175) * Provided surfraw-update-path to put new dir in path. * Added sr as alias to surfraw. * Added bookmark support and /etc/surfraw.bookmarks. * New elvi: alioth, rfc, scpan, deblists. (Closes: #134498) plus leodict and happypenguin by Moritz Muehlenhoff (Closes: #217799) and wikipedia, also by Moritz Muehlenhoff (Closes: #223953) and sharereactor, pgpkeys and ebay, also by Moritz Muehlenhoff * Fixed elvi: altavista, debcontents, excite, jake, scaleplus, slinuxdoc, sundocs, swhois, translate. * amazon: fixed test (Closes: #163903) and -country, removed tag-id stuff. * debcontents: changed options to SURFRAW_debcontents_*. * sourceforge: added -type and -exact options. * webster: added -t (thesaurus) option. * debbugs: added options. * Removed elvi: appwatch, ftpsearch, ftpfind, raging (sites defunct). * Updated Debian Standards-Version to 3.6.1.0 * surfraw.in: - Applied Brian Nelson's "-remote openURL" patch (Closes: #165967). - Fixed browser selection (Closes: #118314). * google -l/-lucky support (Closes: #127078, #128544). * Added deja patch from Christian Garbs (Closes: #149600). * debian/rules: changed to use DESTDIR. * Force default browser to sensible-browser (Closes: #119357) - This supercedes NMU changes (Closes: #200164, #201229, #149584) - Change default browser in manpage (Closes: #113148) * Rename stranslate back to translate (Closes: #141243) * Make woffle not look for /usr/local/bin/surfraw (Closes: #156466) * Add lynx to Recommends (Closes: #141242) * Make surfraw lintian-clean - Remove '(s)' from copyright - Remove /etc conffile entries * Kevin Kreamer did this work. * Easy bugs first - fix type in README (Closes: #154304) - s/README/README.gz/ in manpage (Closes: #164206) * Added elvi for imdb, cddb, freedb and bbcnews written by Ian Beckwith. * changed "Author(s)" to "Author" in debian/copyright * removed debian/conffiles to prevent debhelper being so incredibly "helpful" as to inlude conffiles *twice* 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) 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 Tue Nov 6 11:14:21 EST 2001 - Surfraw 1.0.5 Fix wayward indentation introduced in 1.0.4 which caused -browser to fail Note that SURFRAW_browser was made obsolete in 1.0.4. SURFRAW_text_browser and SURFRAW_graphical_browser replace its functionality STATE EXTRA CLEARLY THE FORMAT OF ~/.surfraw.conf so even Redhat users get it. Thu Oct 25 05:32:25 EST 2001 - Surfraw 1.0.4 New elvi: debbugs, debcontents, debpackages, swhois, woffle Dead elvi: ircsearch, newscientist -g and -t switch between graphical & text browsers -new opens a new window on -remote comprehending browsers Support "--" option to end all options Fix url space escaping problem Surfraw placed into the public domain Fri Jan 12 14:51:10 EST 2001 - Surfraw 1.0.3 New elvi: amazon Add `scaleplus' elvi to elvi/Makefile.am Minor documentation bug fixes Wed Sep 27 06:37:48 EST 2000 - Surfraw 1.0.2 Viva l`explorateur de texte! http://slashdot.org/articles/00/08/28/1143249.shtml http://www.theage.com.au/frontpage/20000828/A32287-2000Aug28.html Translate elvi didn't correctly parse -from or -to HACKING file was missing from EXTRA_DIST Fri Aug 25 23:42:31 EST 2000 - Surfraw 1.0.1 New elvi: britannica Updated elvi: freshmeat Fri Aug 25 02:26:31 EST 2000 - Surfraw 0.5.8 New elvi: stockquote (nasdaq, quote.com, yahoo), jake Don't open new screen(1)s by default Zorch usage of local variables (not POSIX) Sat Aug 12 20:00:45 EST 2000 - Surfraw 0.5.7 New elvi: fast netbsd translate W wetandwild. Auto detect browser during configure phase. Built in support for screen(1) Built in support for netscape-remote `surfraw' on its own now displays a list of elvi Sun Aug 6 11:43:50 EST 2000 - Surfraw 0.5.6 New elvi: newscientist pubmed freshmeat Sat Aug 5 16:07:55 EST 2000 - Surfraw 0.5.5 New elvi: appwatch cnn excite ftpsearch linuxdoc scaleplus sundocs sunsolve thesaurus weather webster Wed Aug 2 08:56:04 EST 2000 Name change, surfaw -> surfraw Web-site is now http://surfraw.sourceforge.net/ Sun Jul 30 17:51:50 EST 2000 - Surfaw 0.5.4 A Lazy sunday. A tired, but happy mood. The afternoon drowses by and we have the initial version. $Id$ surfraw-2.3.0/surfraw.bookmarks0000644000175000017500000000021713235013533013527 00000000000000surfraw http://alioth.debian.org/projects/surfraw/ ntk http://www.ntk.net/ perlmodlist http://www.cpan.org/modules/00modlist.long.html surfraw-2.3.0/links.IN0000644000175000017500000001045313235013533011477 00000000000000elvi.1sr.gz @mandir@/man1/W.1.gz elvi.1sr.gz @mandir@/man1/S.1sr.gz elvi.1sr.gz @mandir@/man1/acronym.1sr.gz elvi.1sr.gz @mandir@/man1/ads.1sr.gz elvi.1sr.gz @mandir@/man1/alioth.1sr.gz elvi.1sr.gz @mandir@/man1/amazon.1sr.gz elvi.1sr.gz @mandir@/man1/archpkg.1sr.gz elvi.1sr.gz @mandir@/man1/archwiki.1sr.gz elvi.1sr.gz @mandir@/man1/arxiv.1sr.gz elvi.1sr.gz @mandir@/man1/ask.1sr.gz elvi.1sr.gz @mandir@/man1/aur.1sr.gz elvi.1sr.gz @mandir@/man1/austlii.1sr.gz elvi.1sr.gz @mandir@/man1/bing.1sr.gz elvi.1sr.gz @mandir@/man1/bbcnews.1sr.gz elvi.1sr.gz @mandir@/man1/bookfinder.1sr.gz elvi.1sr.gz @mandir@/man1/bugmenot.1sr.gz elvi.1sr.gz @mandir@/man1/bugzilla.1sr.gz elvi.1sr.gz @mandir@/man1/cite.1sr.gz elvi.1sr.gz @mandir@/man1/cia.1sr.gz elvi.1sr.gz @mandir@/man1/cliki.1sr.gz elvi.1sr.gz @mandir@/man1/cnn.1sr.gz elvi.1sr.gz @mandir@/man1/comlaw.1sr.gz elvi.1sr.gz @mandir@/man1/commandlinefu.1sr.gz elvi.1sr.gz @mandir@/man1/ctan.1sr.gz elvi.1sr.gz @mandir@/man1/currency.1sr.gz elvi.1sr.gz @mandir@/man1/cve.1sr.gz elvi.1sr.gz @mandir@/man1/debbugs.1sr.gz elvi.1sr.gz @mandir@/man1/debcodesearch.1sr.gz elvi.1sr.gz @mandir@/man1/debcontents.1sr.gz elvi.1sr.gz @mandir@/man1/deblists.1sr.gz elvi.1sr.gz @mandir@/man1/deblogs.1sr.gz elvi.1sr.gz @mandir@/man1/debpackages.1sr.gz elvi.1sr.gz @mandir@/man1/debpkghome.1sr.gz elvi.1sr.gz @mandir@/man1/debpts.1sr.gz elvi.1sr.gz @mandir@/man1/debsec.1sr.gz elvi.1sr.gz @mandir@/man1/debvcsbrowse.1sr.gz elvi.1sr.gz @mandir@/man1/debwiki.1sr.gz elvi.1sr.gz @mandir@/man1/deja.1sr.gz elvi.1sr.gz @mandir@/man1/discogs.1sr.gz elvi.1sr.gz @mandir@/man1/duckduckgo.1sr.gz elvi.1sr.gz @mandir@/man1/ebay.1sr.gz elvi.1sr.gz @mandir@/man1/etym.1sr.gz elvi.1sr.gz @mandir@/man1/excite.1sr.gz elvi.1sr.gz @mandir@/man1/finkpkg.1sr.gz elvi.1sr.gz @mandir@/man1/foldoc.1sr.gz elvi.1sr.gz @mandir@/man1/freebsd.1sr.gz elvi.1sr.gz @mandir@/man1/freedb.1sr.gz elvi.1sr.gz @mandir@/man1/freshmeat.1sr.gz elvi.1sr.gz @mandir@/man1/fsfdir.1sr.gz elvi.1sr.gz @mandir@/man1/gcache.1sr.gz elvi.1sr.gz @mandir@/man1/genbugs.1sr.gz elvi.1sr.gz @mandir@/man1/genportage.1sr.gz elvi.1sr.gz @mandir@/man1/github.1sr.gz elvi.1sr.gz @mandir@/man1/google.1sr.gz elvi.1sr.gz @mandir@/man1/gutenberg.1sr.gz elvi.1sr.gz @mandir@/man1/imdb.1sr.gz elvi.1sr.gz @mandir@/man1/ixquick.1sr.gz elvi.1sr.gz @mandir@/man1/jamendo.1sr.gz elvi.1sr.gz @mandir@/man1/javasun.1sr.gz elvi.1sr.gz @mandir@/man1/lastfm.1sr.gz elvi.1sr.gz @mandir@/man1/leodict.1sr.gz elvi.1sr.gz @mandir@/man1/l1sp.1sr.gz elvi.1sr.gz @mandir@/man1/lsm.1sr.gz elvi.1sr.gz @mandir@/man1/macports.1sr.gz elvi.1sr.gz @mandir@/man1/mathworld.1sr.gz elvi.1sr.gz @mandir@/man1/mdn.1sr.gz elvi.1sr.gz @mandir@/man1/mininova.1sr.gz elvi.1sr.gz @mandir@/man1/musicbrainz.1sr.gz elvi.1sr.gz @mandir@/man1/mysqldoc.1sr.gz elvi.1sr.gz @mandir@/man1/netbsd.1sr.gz elvi.1sr.gz @mandir@/man1/ntrs.1sr.gz elvi.1sr.gz @mandir@/man1/openbsd.1sr.gz elvi.1sr.gz @mandir@/man1/oraclesearch.1sr.gz elvi.1sr.gz @mandir@/man1/pgdoc.1sr.gz elvi.1sr.gz @mandir@/man1/pgpkeys.1sr.gz elvi.1sr.gz @mandir@/man1/phpdoc.1sr.gz elvi.1sr.gz @mandir@/man1/pin.1sr.gz elvi.1sr.gz @mandir@/man1/piratebay.1sr.gz elvi.1sr.gz @mandir@/man1/priberam.1sr.gz elvi.1sr.gz @mandir@/man1/pubmed.1sr.gz elvi.1sr.gz @mandir@/man1/rae.1sr.gz elvi.1sr.gz @mandir@/man1/rfc.1sr.gz elvi.1sr.gz @mandir@/man1/scholar.1sr.gz elvi.1sr.gz @mandir@/man1/scpan.1sr.gz elvi.1sr.gz @mandir@/man1/searx.1sr.gz elvi.1sr.gz @mandir@/man1/slashdot.1sr.gz elvi.1sr.gz @mandir@/man1/slinuxdoc.1sr.gz elvi.1sr.gz @mandir@/man1/sourceforge.1sr.gz elvi.1sr.gz @mandir@/man1/springer.1sr.gz elvi.1sr.gz @mandir@/man1/stack.1sr.gz elvi.1sr.gz @mandir@/man1/stockquote.1sr.gz elvi.1sr.gz @mandir@/man1/thesaurus.1sr.gz elvi.1sr.gz @mandir@/man1/translate.1sr.gz elvi.1sr.gz @mandir@/man1/urban.1sr.gz elvi.1sr.gz @mandir@/man1/w3css.1sr.gz elvi.1sr.gz @mandir@/man1/w3html.1sr.gz elvi.1sr.gz @mandir@/man1/w3link.1sr.gz elvi.1sr.gz @mandir@/man1/w3rdf.1sr.gz elvi.1sr.gz @mandir@/man1/wayback.1sr.gz elvi.1sr.gz @mandir@/man1/webster.1sr.gz elvi.1sr.gz @mandir@/man1/wikipedia.1sr.gz elvi.1sr.gz @mandir@/man1/wiktionary.1sr.gz elvi.1sr.gz @mandir@/man1/woffle.1sr.gz elvi.1sr.gz @mandir@/man1/wolfram.1sr.gz elvi.1sr.gz @mandir@/man1/worldwidescience.1sr.gz elvi.1sr.gz @mandir@/man1/yahoo.1sr.gz elvi.1sr.gz @mandir@/man1/yandex.1sr.gz elvi.1sr.gz @mandir@/man1/youtube.1sr.gz surfraw-2.3.0/surfraw.conf.IN0000644000175000017500000000477713235013533013010 00000000000000# Surfraw -- Shell Users' Revolutionary Front Against the World wide web # # $Id$ # # (c) 2000-2001 Julian Assange, all rights reserved. # (c) 2001 Australian Institute for Collaborative Research, all rights reserved. # (c) 2000 Melbourne Institute for Advanced Study, all rights reserved. # # see the file COPYING for further copyright details # # this file is shell script # # defintion commands: # # def -- define configuration variable unless already defined # (i.e by the environment) # defyn -- define boolean configuration variable unless # already defined # # WARNING: This file has a different format to that of $HOME/.surfraw.conf! # $HOME/.surfraw.conf entries should always be written sh style: # # SURFRAW_text_browser=w3m # etc # autoconf guessed prefix prefix=@prefix@ # graphical browser? defaults to yes for meatminds. text browser users can # work it out how to change it. defyn SURFRAW_graphical yes # name/path of text browser executable # e.g links, lynx, w3m def SURFRAW_text_browser @TEXTBROWSER@ # name/path of browser executable # e.g mozilla, netscape etc. Default to $BROWSER if no listed ones found def SURFRAW_graphical_browser "${BROWSER:-@GRAPHICALBROWSER@}" # text browser arguments, or "none" def SURFRAW_text_browser_args none # graphical browser arguments, or "none" def SURFRAW_graphical_browser_args none # use -remote openURL for graphical browser defyn SURFRAW_graphical_remote no # when using the -remote, open a new window? defyn SURFRAW_new_window no # name of screen command to run def SURFRAW_screen screen # If surfraw is running under screen(1), start a new screen # for each text browser invocation? defyn SURFRAW_new_screen no # arguments for the screen command def SURFRAW_screen_args "" # "quote" arguments defyn SURFRAW_quote_args no # requote arguments if they have spaces in # ie so: # sr google foo "bar baz" bam # works. defyn SURFRAW_quote_ifs yes # default number of results to return def SURFRAW_results 30 # escape [% "@$%&+,/:;<=>?@@[\^{|}~'] characters in command line arguments # subsequently used to construct a url defyn SURFRAW_escape_url_args yes # just print search url? defyn SURFRAW_print no # Fetch and dump url? defyn SURFRAW_dump no # Language/country (for elvi that support it) # Should be a 2-letter iso country code def SURFRAW_lang "" # provider for searches that use a search engine # with (eg) site: specifiers # supported: google duckduckgo def SURFRAW_customsearch_provider duckduckgo surfraw-2.3.0/surfraw.IN0000755000175000017500000004221113235013533012050 00000000000000#!/bin/sh # Surfraw -- Shell Users' Revolutionary Front Against the World wide web # # Copyright (c) 2003-2018 The Surfraw-Devel Team # # Copyright (c) 2000-2001 Julian Assange, placed into the public domain # Copyright (c) 2000 Melbourne Institute for Advanced Study, placed into the public domain # # see the file COPYING for further copyright details # surfraw_version=@VERSION@ surfraw_api_version=1.0 w3_argv0=`basename "$0"` elvidir="@ELVIDIR@" # defaults w3_config_hook () { return 1 } find_global_conf () { base="$1" local conf OIFS conf="" if test -n "$XDG_CONFIG_DIRS"; then OIFS="$IFS" IFS=: set $XDG_CONFIG_DIRS IFS="$OIFS" for i in "$@"; do if test -r "$i/surfraw/$base"; then conf="$i/surfraw/$base" break fi done elif test -r "@sysconfdir@/xdg/surfraw/$base"; then # XDG default conf="@sysconfdir@/xdg/surfraw/$base" elif test -r "@sysconfdir@/surfraw.$base"; then # old surfraw default conf="@sysconfdir@/surfraw.$base" fi echo "$conf" } load_global_conf () { local conf if test -n "$SURFRAW_global_conf" && test -r "$SURFRAW_global_conf"; then conf="$SURFRAW_global_conf" else conf=$(find_global_conf conf) fi if test -z "$conf" || ! test -r "$conf"; then err "couldn't find global config in @sysconfdir@/xdg/surfraw/conf or \$XDG_CONFIG_DIRS" fi . "$conf" } find_local_conf () { base="$1" if test -n "$XDG_CONFIG_HOME" && test -r "$XDG_CONFIG_HOME/surfraw/$base"; then echo "$XDG_CONFIG_HOME/surfraw/$base" elif test -n "$HOME"; then if test -r "$HOME/.config/surfraw/$base"; then echo "$HOME/.config/surfraw/$base" elif test -r "$HOME/.surfraw.$base"; then echo "$HOME/.surfraw.$base" fi fi } load_local_conf () { local conf conf="" if test -n "$SURFRAW_conf" && test -r "$SURFRAW_conf"; then conf="$SURFRAW_conf" else conf="$(find_local_conf conf)" fi if test -n "$conf" && test -r "$conf"; then . $conf fi } get_local_elvi_dir () { if test -n "$XDG_CONFIG_HOME";then echo "$XDG_CONFIG_HOME/surfraw/elvi" elif test -n "$HOME";then echo "$HOME/.config/surfraw/elvi" fi } w3_config () { load_global_conf w3_config_hook load_local_conf } warn () { echo "$w3_argv0 WARNING: ""$@" >&2 } err () { echo "$w3_argv0 ERROR: ""$@" >&2 exit 1 } yesno () { eval value=\$${1} case `echo "$value" | tr A-Z a-z` in yes|true|on|1) return 0 ;; no|false|off|0) return 1 ;; *) err "\"$1\" is not set correctly. Should be (yes|on|1|no|off|0). Is \"$value\"" ;; esac } ifyes () { yesno "$@" && return 0 return 1 } ifno () { yesno "$@" && return 1 return 0 } ok () { yesno "$@" } null () { test -z "$@" && return 0 return 1 } def () { eval value=\$${1} test -z "$value" || return 0 eval ${1}="$2" return 0 } defyn () { eval value=\$${1} test -z "$value" && eval ${1}="$2" yesno "$1" } setopt () { eval value=\$${1} eval ${1}="$2" } setoptyn () { eval value=\$${1} eval ${1}="$2" yesno "$1" } quote_ifs () { if [ -z "$1" ]; then return; fi @PERL@ -e '$ifs=$ENV{IFS} || " "; $arg=shift;if($arg =~/[$ifs]/) { $arg="\"$arg\""; } print "$arg\n"; ' -- "$1" } bookmark_file_search () { search="$1" file="$2" if [ -r "$file" ] then @AWK@ -v search="$search" '$1 == search { for (nLoop = 2;nLoop <= NF; nLoop++) printf("%s ", $nLoop); print ""; }' $file | head -n 1 fi } bookmark_lookup () { search="$1" file=$(find_local_conf bookmarks) lookup=$(bookmark_file_search "$search" "$file") if [ -z "$lookup" ] then file=$(find_global_conf bookmarks) lookup=$(bookmark_file_search "$search" "$file") fi if [ -n "$lookup" ] then echo "$lookup" fi } w3_find_prog () { prog="$1" old_ifs="${IFS:-\" \"}" IFS=":" path_ifs="$PATH" for dir in $path_ifs; do test -z "$dir" && dir=. if test -e "$dir/$prog"; then echo "$dir/$prog" IFS="$old_ifs" return 0 fi done IFS="$old_ifs" return 1 } w3_url_escape () { echo "$@" | sed 's/%/%25/g; s/+/%2B/g; # s/ /+/g; s/ /%20/g; s/(/%28/g; s/)/%29/g; s/"/%22/g; s/#/%23/g; s/\$/%24/g; s/&/%26/g; s/,/%2C/g; # s/\./%2E/g; sx/x%2Fxg; s/:/%3A/g; s/;/%3B/g; s//%3E/g; s/?/%3F/g; s/@/%40/g; s/\[/%5B/g; s/\\/%5C/g; s/\]/%5D/g; s/\^/%5E/g; s/{/%7B/g; s/|/%7C/g; s/}/%7D/g; s/~/%7E/g; s/`/%60/g; '"s/'/%27/g" } w3_url_of_arg () { if ok SURFRAW_quote_args; then args=\""$@"\" else args="$@" fi if ok SURFRAW_escape_url_args; then w3_url_escape "$args" else echo "$args" fi } true () { return 0 } false () { return 1 } w3_global_usage () { defyn SURFRAW_local_help no if ifyes SURFRAW_local_help; then return; fi # style: keep sorted #-------------------------------------79 cols---------------------------------- cat < Copyright (c) 2000-2001 Julian Assange Copyright (c) 2001 Australian Institute for Collaborative Research Copyright (c) 2000 Melbourne Institute for Advanced Study EOF } w3_usage_hook () { echo "Usage: $w3_argv0 [options] [args...]" w3_global_usage } w3_bad_option () { err "bad option \"${opt}\". Try ${w3_argv0} -help for usage information" } w3_parse_option_hook () { return 1 } list_elvi() { local_dir="$1" awk '/^#[ ]+elvis:[ ]+/{ sub("^# elvis: ",""); print $0; }' $(find "$local_dir/" ! -type d ! -type l ! -name '*~' | sort | xargs) for script in $(find "$local_dir/" ! -type d -type l | sort) ; do printf '%-16s--> %s\n' $(basename "$script") $(basename $(readlink "${script}")) done } w3_parse_option () { opt="$1" case "$opt" in -*=*) optarg=`echo "$opt" | sed 's/[-_a-zA-Z0-9]*=//'` esac w3_parse_option_hook "$opt" "$optarg" && return 0 case "$opt" in -bookmark-search-elvis=*) setopt SURFRAW_bookmark_search_elvis $optarg ;; -browser=*) setopt SURFRAW_browser $optarg ;; -elvi) echo " GLOBAL ELVI:" list_elvi "$elvidir" localelvidir=$(get_local_elvi_dir) if [ -d "$localelvidir" ] && [ -n "$(ls "$localelvidir")" ]; then echo " LOCAL ELVI:" list_elvi "$localelvidir" fi exit 0 ;; -escape-url-args=*) setoptyn SURFRAW_escape_url_args $optarg ;; -g | -graphical) setoptyn SURFRAW_graphical yes ;; -help | --help |-h) do_help=1 ;; -local-help | \ --local-help |-lh ) do_help=1 ;setoptyn SURFRAW_local_help yes ;; -q | -quote) setoptyn SURFRAW_quote_args yes ;; -new) setoptyn SURFRAW_new_window yes ;; -new=*) setoptyn SURFRAW_new_window $optarg ;; -ns | -newscreen) setoptyn SURFRAW_new_screen yes ;; -ns=* | -newscreen=*) setoptyn SURFRAW_new_screen $optarg ;; -custom-search=*) setopt SURFRAW_customsearch_provider $optarg ;; -o) setoptyn SURFRAW_dump yes ;; -o=*) setoptyn SURFRAW_dump yes setopt SURFRAW_dump_file $optarg ;; -t | -text) unset DISPLAY setoptyn SURFRAW_graphical no ;; -version) echo $surfraw_version; exit 0 ;; -p | -print) setoptyn SURFRAW_print yes ;; --) setoptyn SURFRAW_end_of_args yes ;; -*) w3_bad_option "$opt" ;; *) return 1 ;; esac return 0 } w3_parse_args () { w3_args= w3_shquoted_args= def SURFRAW_browser none def SURFRAW_browser_args none defyn SURFRAW_quote_ifs yes defyn SURFRAW_end_of_args no do_help=0 mode=unknown for arg in "$@"; do isarg=1 if ifno SURFRAW_end_of_args then w3_parse_option "$arg" isarg=$? fi if [ $isarg -eq 1 ] then if [ -z "$w3_shquoted_args" ] then w3_shquoted_args="`quote "$arg"`" else w3_shquoted_args="$w3_shquoted_args `quote "$arg"`" fi if ok SURFRAW_quote_ifs then arg=`quote_ifs "$arg"` fi if [ -n "$w3_args" ] then w3_args="$w3_args $arg" else w3_args="$arg" fi fi done if test $SURFRAW_browser = none; then if ok SURFRAW_graphical && test -n "$DISPLAY"; then SURFRAW_browser=$SURFRAW_graphical_browser SURFRAW_browser_args=$SURFRAW_graphical_browser_args mode=graphical else SURFRAW_browser=$SURFRAW_text_browser SURFRAW_browser_args=$SURFRAW_text_browser_args mode=text fi fi if ok do_help; then w3_usage_hook exit 0 fi } w3_dump () { if test -z "$SURFRAW_dump_file"; then SURFRAW_dump_file="-" fi if test -x "$(which curl)"; then curl -o "$SURFRAW_dump_file" "$@" elif test -x "$(which wget)"; then wget -q -O "$SURFRAW_dump_file" "$@" elif test -x "$(which GET)"; then if test "$SURFRAW_dump_file" = "-"; then GET "$@" else GET "$@" > "$SURFRAW_dump_file" fi else err "No URL fetcher found: install curl, wget or libwww-perl" fi } w3_browse_url () { if ok SURFRAW_new_screen && test `echo $TERM | cut -c 1-6` = "screen" && test $mode = text; then screen=yes else screen=no fi if ok SURFRAW_dump; then w3_dump "$@" elif ok SURFRAW_print; then echo "$@" elif ok screen; then if [ "$SURFRAW_screen" = "tmux" ]; then if test "$SURFRAW_browser_args" = "none"; then $SURFRAW_screen $SURFRAW_screen_args "$SURFRAW_browser \"$@\"" else $SURFRAW_screen $SURFRAW_screen_args "$SURFRAW_browser $SURFRAW_browser_args \"$@\"" fi else if test $SURFRAW_browser_args = "none"; then $SURFRAW_screen $SURFRAW_screen_args $SURFRAW_browser "$@" else $SURFRAW_screen $SURFRAW_screen_args $SURFRAW_browser $SURFRAW_browser_args "$@" fi fi else if ok SURFRAW_graphical_remote && test $mode = graphical; then if ok SURFRAW_new_window; then newwin=", new-window" else newwin="" fi if test $SURFRAW_browser_args = "none"; then $SURFRAW_browser -remote "openURL($*$newwin)" 2>/dev/null || $SURFRAW_browser "$@" & else $SURFRAW_browser -remote "openURL($*$newwin)" 2>/dev/null || $SURFRAW_browser $SURFRAW_browser_args "$@" & fi else if test $SURFRAW_browser_args = "none"; then $SURFRAW_browser "$@" else $SURFRAW_browser $SURFRAW_browser_args "$@" fi fi fi } w3_custom_search_usage() { echo "Custom search:" echo " To choose which search engine gets used for custom searches," echo " configure SURFRAW_customsearch_provider" echo " or use -custom-search=PROVIDER" echo " supported: google, duckduckgo" echo " default: $SURFRAW_customsearch_provider" } w3_custom_search() { case "$SURFRAW_customsearch_provider" in google) w3_custom_search_google "$@" ;; duckduckgo) w3_custom_search_duckduckgo "$@" ;; ixquick) w3_custom_search_ixquick "$@" ;; *) w3_custom_search_duckduckgo "$@" ;; esac } w3_custom_search_google() { params=$(eval w3_custom_search_mangle -s site: $*) params=$(eval w3_custom_search_mangle -u inurl: $params) params=$(eval w3_custom_search_inurl_quote_dots $params) url="$(eval surfraw google -p $params )" w3_browse_url "$url" } w3_custom_search_duckduckgo() { params=$(eval w3_custom_search_mangle -s site: $*) params=$(eval w3_custom_search_mangle -u inurl: $params) url="$(eval surfraw duckduckgo -p $params )" w3_browse_url "$url" } w3_custom_search_ixquick() { params=$(eval w3_custom_search_mangle -s host: $*) params=$(eval w3_custom_search_mangle -u url: $params) url="$(eval surfraw ixquick -p $params )" w3_browse_url "$url" } w3_custom_search_mangle() { search="$1" replace="$2" shift shift for arg in "$@" do quote "$(echo "$arg" | sed "s/^${search}=\(.*\)/${replace}\1/")" done } w3_custom_search_inurl_quote_dots() { for arg in "$@" do if echo "$arg" | grep -q -- inurl: then quote "$(echo "$arg" | sed 's/\./\\./g;')" else quote "$arg" fi done } quote () { quoted=`echo "$1"|sed "s/'/'\\\\\''/g"` echo "'$quoted'" } surfraw_usage() { cat </dev/null`" ] && [ -x "`which aclocal-1.10 2>/dev/null`" ]; then AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10 export AUTOMAKE ACLOCAL elif [ -x "`which automake-1.11 2>/dev/null`" ] && [ -x "`which aclocal-1.11 2>/dev/null`" ]; then AUTOMAKE=automake-1.11 ACLOCAL=aclocal-1.11 export AUTOMAKE ACLOCAL fi # else use default fi # if AUTOCONF is not set, explicity search for autoconf2.50 if [ -z "$AUTOCONF" ]; then if [ -x "`which autoconf2.50 2>/dev/null`" ]; then AUTOCONF=autoconf2.50 export AUTOCONF fi # else use default fi autoreconf -vi surfraw-2.3.0/missing0000755000175000017500000002403213235013533011524 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing 0.4 - GNU automake" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 surfraw-2.3.0/surfraw.lsm.in0000644000175000017500000000112613235013533012737 00000000000000Begin4 Title: surfraw Version: @VERSION@ Entered-date: @ISODATE@ Description: Shell Users' Revolutionary Front Rage Against the Web Fast unix command line interface to a variety of popular WWW search engines and other evils Keywords: surfraw, www, web, search Author: proff@iq.org (Julian Assange) surfraw-devel@lists.alioth.debian.org (Current surfraw developers) Maintained-by: surfraw-devel@lists.alioth.debian.org Primary-site: https://gitlab.com/surfraw/Surfraw Original-site: http://surfraw.alioth.debian.org Platforms: shell, perl and sed script Copying-policy: Public Domain End surfraw-2.3.0/opensearch-discover0000755000175000017500000001222013235013533014012 00000000000000#!/usr/bin/perl -w # $Id$ # Ian Beckwith # 20060830 use strict; use vars qw($me $url $title $all $verbose $found $foundnonmatching); $me=($0=~/(?:.*\/)?(.*)/)[0]; use Getopt::Long; $found=0; $foundnonmatching=0; $all=0; $verbose=0; $title=undef; my $quiet=0; my $help=0; GetOptions('quiet' => \$quiet, 'verbose' => \$verbose, 'title=s' => \$title, 'all' => \$all, '1|first' => sub { $all=0; }, 'help' => \$help); if ($help || ($#ARGV!=0)) { usage(); } unless (eval { require LWP::UserAgent; require HTTP::Request; require HTTP::Response; require HTML::Parser; }) { unless($quiet) { print STDERR "$me: Cannot find required modules, are libwww-perl and HTML::Parser installed?\n"; } exit 3; } my $urlstr=shift; unless($urlstr=~/^http\:\/\//i) { $urlstr="http://".$urlstr; } $url=URI->new($urlstr); my $ua=LWP::UserAgent->new; # FIXME: utf8 problem with weblabor.hu on next line # looks like a LWP::UserAgent problem, reported # as a comment to existing debian bug #296832 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296832 my $response=$ua->get("$url"); unless($response->is_success) { unless($quiet) { print STDERR "$me: Error retriving $url: ",$response->status_line,"\n"; } exit 1; } my $parser=HTML::Parser->new(api_version => 3, start_h => [ \&start_handler, "self,tagname,attr" ], end_h => [ \&end_handler, "self,tagname" ], report_tags => [qw(head link)]); $parser->parse($response->decoded_content); unless($found) { unless($quiet) { print STDERR "$me: $url: No "; if($foundnonmatching) { print STDERR "matching "; } print STDERR "OpenSearch link found\n"; } exit 2; } exit 0; sub start_handler { my($self,$tag,$attr)=@_; if(($tag eq 'link') && (exists($attr->{rel})) && (defined($attr->{rel})) && ($attr->{rel} =~/^search$/i) && (exists($attr->{type})) && (defined($attr->{type})) && ($attr->{type} eq 'application/opensearchdescription+xml') && (exists($attr->{href})) && (defined($attr->{href}))) { my $href=URI->new($attr->{href}); my $link=$href->abs($url)->canonical; if(defined($title)) { if((exists($attr->{title})) && (defined($attr->{title}))) { unless($attr->{title} =~/$title/i) { $foundnonmatching=1; return; } } else { # title doesnt exist so can't match $foundnonmatching=1; return; } } $found=1; if(($verbose) && (exists($attr->{title})) && (defined($attr->{title}))) { print $attr->{title},": "; } print $link,"\n"; unless($all) { exit 0; } } } sub end_handler { my($self,$tag)=@_; # stop parsing at if($tag eq 'head') { $self->eof(); } } sub usage { die("Usage: $me [-q] [-v] [-1|-a] [-t TITLE] [-h] URL\n". "Finds and displays OpenSearch links at a given URL.\n". "Options:\n". " -q\t\tQuiet: Don't display errors.\n". " -v\t\tVerbose: display titles with links.\n". " -t TITLE\tOnly display links matching TITLE, a case-insensitive perl regex.\n". " -1\t\tOnly display first (matching) link (default).\n". " -a\t\tDisplay all (matching) links.\n". " -h\t\tThis help.\n". "Return codes:\n". " 0 - Success.\n". " 1 - Cannot load URL.\n". " 2 - Cannot find (matching) OpenSearch link at URL.\n". " 3 - Cannot find required perl modules.\n"); } __END__ =head1 NAME opensearch-discover - Find an OpenSearch link from a given URL. =head1 SYNOPSIS B [B<-q>] [B<-v>] S<[B<-t TITLE>]> S<[B<-1>|B<-a>]> [B<-h>] [I] =head1 DESCRIPTION Loads the given URL, searches it for a link to an OpenSearch description URL, and prints that URL. =head1 OPTIONS =over 4 =item B<-q>, B<--quiet> Give no output on errors. In this case, consult the exit code to determine errors (See L). =item B<-v>, B<--verbose> Verbose: display titles with links. Combine with B<-a> to see all available searches =item S I>, S<B<--title>=I<TITLE>> Only display links matching B<TITLE>, a case-insensitive perl regular expression. For example, B<-t book> would match I<Book Search>, and B<-t b.*k> would match I<Book Search> or I<Baby Springbok>. =item B<-1>, B<--first> Only display first (matching) link. This is the default. =item B<-a>, B<--all> Display all (matching) links. =item B<-h>, B<--help> Display a short help message. =back =head1 DIAGNOSTICS On success, prints the address of the OpenSearch description file and returns 0. If it cannot load the given URL, it returns 1. If the given URL does not contain a link to an OpenSearch description file, it returns 2. If required perl modules are missing, it returns 3. =head1 DEPENDENCIES Requires modules from libwww-perl and HTML::Parser (Debian package libhtml-parser-perl). =head1 BUGS None known. Please report any found to ianb@erislabs.net =head1 SEE ALSO L<opensearch(1)>, L<opensearch-genquery(1)>, L<surfraw(1)>, L<WWW::OpenSearch(3pm)>, L<http://www.opensearch.org/> =head1 AUTHOR Ian Beckwith <ianb@erislabs.net> =head1 COPYRIGHT AND LICENSE Copyright 2006 Ian Beckwith <ianb@erislabs.net> Licensed under the same terms as surfraw. =cut ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/Makefile.in���������������������������������������������������������������������������0000644�0001750�0001750�00000103137�13235013641�012176� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : @OPENSEARCH_TRUE@am__append_1 = opensearch-discover.1 opensearch-genquery.1 subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__dist_bin_SCRIPTS_DIST) \ $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = surfraw.lsm surfraw.spec CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(man1dir)" am__dist_bin_SCRIPTS_DIST = opensearch-discover opensearch-genquery SCRIPTS = $(bin_SCRIPTS) $(dist_bin_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man_MANS) DATA = $(noinst_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/surfraw.lsm.in \ $(srcdir)/surfraw.spec.in AUTHORS COPYING ChangeLog INSTALL \ NEWS README TODO install-sh missing mkinstalldirs DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ELVIDIR = @ELVIDIR@ GRAPHICALBROWSER = @GRAPHICALBROWSER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ ISODATE = @ISODATE@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TEXTBROWSER = @TEXTBROWSER@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = elvi test examples bin_SCRIPTS = surfraw surfraw-update-path @OPENSEARCH_TRUE@dist_bin_SCRIPTS = opensearch-discover opensearch-genquery devel_extra = banner prebuild noinst_DATA = surfraw-bash-completion surfraw.bookmarks man_MANS = surfraw-update-path.1 surfraw.1 elvi.1sr $(am__append_1) debian_extra = debian/NEWS debian/README.Debian debian/changelog debian/compat debian/control \ debian/copyright debian/docs debian/postrm debian/rules debian/source/format \ debian/surfraw-extra.files debian/surfraw-extra.install debian/watch EXTRA_DIST = surfraw.lsm.in surfraw.IN surfraw-update-path.IN\ surfraw.spec.in aclocal.m4 HACKING STYLE \ surfraw.1.IN elvi.1sr.IN surfraw.bookmarks links.IN \ surfraw-bash-completion.IN surfraw.conf.IN \ $(devel_extra) $(debian_extra) CLEANFILES = surfraw surfraw-update-path surfraw-update-path.1 surfraw.spec surfraw.lsm \ surfraw.1 elvi.1sr links surfraw-bash-completion surfraw.conf surfraw.1 \ elvi.1sr opensearch-discover.1 opensearch-genquery.1 BUILT_SOURCES = surfraw.conf all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): surfraw.lsm: $(top_builddir)/config.status $(srcdir)/surfraw.lsm.in cd $(top_builddir) && $(SHELL) ./config.status $@ surfraw.spec: $(top_builddir)/config.status $(srcdir)/surfraw.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) install-dist_binSCRIPTS: $(dist_bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(SCRIPTS) $(MANS) $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-man @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binSCRIPTS install-dist_binSCRIPTS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binSCRIPTS uninstall-dist_binSCRIPTS \ uninstall-local uninstall-man uninstall-man: uninstall-man1 .MAKE: $(am__recursive_targets) all check install install-am \ install-data-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-binSCRIPTS \ install-data install-data-am install-data-hook \ install-dist_binSCRIPTS install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-man1 \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ tags-am uninstall uninstall-am uninstall-binSCRIPTS \ uninstall-dist_binSCRIPTS uninstall-local uninstall-man \ uninstall-man1 .PRECIOUS: Makefile # we cannot portably combine single suffix rules and separated dependencies # so we have to explicitly specify all the .IN rules surfraw: surfraw.IN -rm -f $@ $@.tmp sed -e 's,@VERSION\@,${VERSION},g; '\ -e 's,@ELVIDIR\@,${ELVIDIR},g; '\ -e 's,@AWK\@,${AWK},g; '\ -e 's,@PERL\@,${PERL},g; '\ -e 's,@sysconfdir\@,${sysconfdir},g ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw.conf: surfraw.conf.IN -rm -f $@ $@.tmp sed -e 's,@prefix\@,${prefix},g; '\ -e 's,@TEXTBROWSER\@,${TEXTBROWSER},g; '\ -e 's,@GRAPHICALBROWSER\@,${GRAPHICALBROWSER},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw-update-path: surfraw-update-path.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw-bash-completion: surfraw-bash-completion.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ elvi.1sr: elvi.1sr.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw.1: surfraw.1.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; '\ -e 's,@sysconfdir\@,${sysconfdir},g' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ links: links.IN -rm -f $@ $@.tmp sed -e 's,@mandir\@,${mandir},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw-update-path.1: surfraw-update-path -rm -f $@ pod2man $? > $@ opensearch-discover.1: opensearch-discover -rm -f $@ pod2man $? > $@ opensearch-genquery.1: opensearch-genquery -rm -f $@ pod2man $? > $@ install-data-hook: links chmod -x surfraw.conf elvi.1sr surfraw.1 mkdir -p $(DESTDIR)@sysconfdir@/xdg/surfraw cp surfraw.conf $(DESTDIR)@sysconfdir@/xdg/surfraw/conf cp $(top_srcdir)/surfraw.bookmarks $(DESTDIR)@sysconfdir@/xdg/surfraw/bookmarks while read target link ;\ do \ ln -sf $$target $(DESTDIR)/$$link ;\ done < links @INSTALLSR_TRUE@ ln -sf surfraw $(DESTDIR)/@bindir@/sr @INSTALLSR_TRUE@ ln -sf surfraw.1.gz $(DESTDIR)/@mandir@/man1/sr.1.gz uninstall-local: links -rm -f $(DESTDIR)@sysconfdir@/xdg/surfraw/conf -rm -f $(DESTDIR)@sysconfdir@/xdg/surfraw/bookmarks rmdir $(DESTDIR)@sysconfdir@/xdg/surfraw 2>/dev/null rmdir $(DESTDIR)@sysconfdir@/xdg 2>/dev/null while read target link ;\ do \ rm -f $(DESTDIR)/$$link ;\ done < links @INSTALLSR_TRUE@ rm -f $(DESTDIR)/@bindir@/sr @INSTALLSR_TRUE@ rm -f $(DESTDIR)/@mandir@/man1/sr.1.gz submit-lsm: surfraw.lsm mail -s add LSM@qqx.org < $? test: all surfraw.conf make -C test test .PHONY: test # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/configure.in��������������������������������������������������������������������������0000644�0001750�0001750�00000004031�13235013533�012433� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������dnl $Id$ dnl Process this file with autoconf to produce a configure script. dnl This is the only place where the package version appears dnl (apart from changelogs & NEWS) AC_INIT(surfraw, 2.3.0) AC_PREREQ(2.54) AC_CONFIG_SRCDIR([surfraw.IN]) dnl minimum automake version, not surfraw version AM_INIT_AUTOMAKE([1.10]) AC_MSG_CHECKING([whether to enable local OpenSearch support]) AC_ARG_ENABLE([opensearch], [AS_HELP_STRING([--disable-opensearch], [disable local OpenSearch support])],, [enable_opensearch=yes]) AC_MSG_RESULT([$enable_opensearch]) AM_CONDITIONAL(OPENSEARCH, test "$enable_opensearch" = "yes") AC_MSG_CHECKING([whether to install sr alias]) AC_ARG_ENABLE([sr], [AS_HELP_STRING([--disable-sr], [disable sr alias])],, [enable_sr=yes]) AC_MSG_RESULT([$enable_sr]) AM_CONDITIONAL(INSTALLSR, test "$enable_sr" = "yes") ELVIDIR="\$(libdir)/surfraw" AC_CHECK_PROGS(TEXTBROWSER, lynx links2 links elinks w3m netrik) AC_CHECK_PROGS(GRAPHICALBROWSER, iceweasel firefox google-chrome opera mozilla \ xombrero luakit safari epiphany-browser konqueror galeon kazenhakase \ conkeror dillo netscape chromium chrome) AC_ARG_WITH([elvidir], [AS_HELP_STRING([--with-elvidir=ELVIDIR], [specify location of elvi])], [if test -n "$withval" && test "$withval" != "no" ; then ELVIDIR="$withval";fi]) AC_ARG_WITH([text-browser], [AS_HELP_STRING([--with-text-browser=BROWSER], [specify default text browser])], [if test -n "$withval" && test "$withval" != "no" ; then TEXTBROWSER="$withval";fi]) AC_ARG_WITH([graphical-browser], [AS_HELP_STRING([--with-graphical-browser=BROWSER], [specify default graphical browser])], [if test -n "$withval" && test "$withval" != "no" ; then GRAPHICALBROWSER="$withval";fi]) AC_SUBST(ELVIDIR) AC_SUBST(VERSION) AC_SUBST(TEXTBROWSER) AC_SUBST(GRAPHICALBROWSER) ISODATE=`date +%Y-%m-%d` AC_SUBST(ISODATE) dnl Checks for programs. AC_PROG_INSTALL AC_PROG_AWK AC_PATH_PROG([PERL], [perl], [perl]) AC_SUBST(PERL) AC_CONFIG_FILES([Makefile surfraw.lsm surfraw.spec elvi/Makefile test/Makefile examples/Makefile]) AC_OUTPUT �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/opensearch-genquery�������������������������������������������������������������������0000755�0001750�0001750�00000016705�13235013533�014047� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/usr/bin/perl -w # $Id$ # Ian Beckwith <ianb@erislabs.net> # 20060830 use Getopt::Long; use strict; use vars qw($me); $me=($0=~/(?:.*\/)?(.*)/)[0]; use vars qw(@wantedtypes $htmlmime $atommime $rssmime); @wantedtypes=(); $htmlmime="text/html"; $atommime="application/atom+xml"; $rssmime ="application/rss+xml"; my $quiet=0; my $count=undef; my $startindex=undef; my $startpage=undef; my $language=undef; my $inputencoding=undef; my $outputencoding=undef; my $help=0; Getopt::Long::Configure("no_ignore_case"); GetOptions("quiet" => \$quiet, "H|html" => sub { push(@wantedtypes,$htmlmime); }, "A|atom" => sub { push(@wantedtypes,$atommime); }, "R|rss" => sub { push(@wantedtypes,$rssmime); }, "count=i" => \$count, "language=s" => \$language, "i|startindex=i" => \$startindex, "p|startpage=i" => \$startpage, "O|outputencoding=s" => \$outputencoding, "I|inputencoding=s" => \$inputencoding, "h|help" => \$help); if ($help || ($#ARGV<1)) { usage(); } my $url=shift; my $searchterms=join(' ',@ARGV); unless($url=~/^http\:\/\//i) { $url="http://".$url; } unless (eval { require WWW::OpenSearch; }) { unless($quiet) { print STDERR "$me: Cannot find WWW::OpenSearch, is it installed?\n"; } exit 4; } my $engine; eval { $engine=WWW::OpenSearch->new($url); }; if($@) { my $errstr=""; my $exitcode=0; if($@ =~/fetching/i) { $errstr="Error fetching $url"; $exitcode=1; } elsif(($@ =~/parsing/i) || ($@ =~/node\s+should/i)) { $errstr="Error parsing OpenSearch Description at $url"; $exitcode=2; } else { # Some other error, probably because WWW::OpenSearch has changed $errstr=$@; $exitcode=5; } unless($quiet) { print STDERR "$me: $errstr\n"; } exit $exitcode; } my $desc=$engine->description(); # copy options to hash, translating from option name to OpenSearch param my %options=(); $options{searchTerms} = $searchterms; if(defined($count)) { $options{count} = $count; } if(defined($startindex)) { $options{startIndex} = $startindex; } if(defined($startpage)) { $options{startPage} = $startpage; } if(defined($language)) { $options{language} = $language; } if(defined($inputencoding)) { $options{inputEncoding} = $inputencoding; } if(defined($outputencoding)) { $options{outputEncoding} = $outputencoding; } my @urls=(); for (@{$desc->url()}) { if($_->method() =~ /^get$/i) { push(@urls,$_); } } my $besturl=undef; # if no preferred type specified use first Url. if($#wantedtypes<0) { $besturl=$urls[0]; } else # find best match against @wantedtypes { my $bestindex=undef; for my $urlindex (0..$#urls) { for(my $typeindex=0;$typeindex<=$#wantedtypes;$typeindex++) { if($urls[$urlindex]->type() eq $wantedtypes[$typeindex]) { if((!defined($bestindex)) || ($typeindex < $bestindex)) { $bestindex=$typeindex; $besturl=$urls[$urlindex]; } } } } } if(!defined($besturl)) { unless($quiet) { print STDERR "$me: No matching search type found\n"; } exit 3; } print $besturl->prepare_query(\%options),"\n"; exit 0; sub usage { die("Usage: $me [OPTIONS] URL SEARCH TERMS...\n". " Outputs the url of a query generated from an OpenSearch Description\n". " at URL with SEARCH TERMS filled in.\n". "Options:\n". " -q\t\tQuiet: Don't display errors.\n". " -H, -A, -R can be ordered to express response type priority.\n". " -H\t\tRequest HTML response.\n". " -A\t\tRequest Atom response.\n". " -R\t\tRequest RSS response.\n". " Not all sites implement all (or any) of the following options.\n". " Unimplemented options will be silently ignored.\n". " -c COUNT\tRequest COUNT results (OpenSearch param: count).\n". " -i INDEX\tRequest results start at NUM (OpenSearch param: startIndex).\n". " -p PAGENUM\tRequest results page PAGENUM (OpenSearch param: pageIndex).\n". " -l LANG\tRequest results in LANG (2-letter ISO country code) (OpenSearch param: language).\n". " -I ENC\t\tSpecify search terms are encoded in ENC (OpenSearch param: inputEncoding).\n". " -O ENC\t\tRequest results encoded in ENC (OpenSearch param: outputEncoding).\n". "Return codes:\n". " 0 - Success.\n". " 1 - Error fetching OpenSearch Description URL.\n". " 2 - Error parsing OpenSearch Description.\n". " 3 - No matching search type found.\n". " 4 - Cannot find perl module WWW::OpenSearch.\n". " 5 - Unhandled error from WWW::OpenSearch.\n"); } __END__ =head1 NAME opensearch-genquery - Output the URL of a query generated from an OpenSearch Description =head1 SYNOPSIS B<opensearch-genquery> [B<-q>] [B<-H>] [B<-A>] [B<-R>] S<[B<-c> I<COUNT>]> S<[B<-i> I<INDEX>]> S<[B<-p> I<PAGENUM>]> S<[B<-l> I<LANG>]> S<[B<-O> I<ENC>]> S<[B<-I> I<ENC>]> I<URL> S<I<SEARCH TERMS...>> =head1 DESCRIPTION Output the URL of a query generated from an OpenSearch Description file at I<URL>, with the specified S<I<SEARCH TERMS>> and other options filled in. If multiple search types are available, B<-H>, B<-A> and B<-R> can be used to specify which type is wanted. For example, S<B<-A -R>> can be used to request an Atom response, or failing that fall back to RSS. By default the first URL found in the description file is used. Not all web sites implement all (or any) of the optional OpenSearch parameters. When used with those sites, the corresponding options will be silently ignored. =head1 OPTIONS =over 4 =item B<-q> Give no output on errors. In this case, consult the exit code to determine errors (See L</DIAGNOSTICS>). =item B<-H> Request HTML response. =item B<-A> Request Atom response. =item B<-R> Request RSS response. B<-H>, B<-A>, and B<-R> can be combined to express response type priority and specify fallback types. =item B<-c COUNT>, B<--count=COUNT> Request COUNT results. OpenSearch parameter: I<count>. =item B<-i INDEX>, B<--startindex=INDEX> Request results start at offset NUM. OpenSearch parameter: I<startIndex>. =item B<-p PAGENUM>, B<--startpage=PAGENUM> Request results page PAGENUM. OpenSearch parameter: I<pageIndex>. =item B<-l LANG>, B<--language=LANG> Request results in LANG. LANG should be a 2-letter ISO country code (e.g. B<en> or B<de>). OpenSearch parameter: I<language>. =item B<-O ENC>, B<--outputencoding=ENC> Request results encoded in ENC (default: UTF-8). OpenSearch parameter: I<outputEncoding>. =item B<-I ENC>, B<--inputencoding=ENC> Specify search terms are encoded in ENC (default: UTF-8). OpenSearch parameter: I<inputEncoding>. =item B<-h>, B<--help> Show a short help message. =item B<--> End of options. =back =head1 DIAGNOSTICS The exit code can be consulted to determine errors, as follows: =over 4 =item B<0> - Success. =item B<1> - Error fetching OpenSearch Description URL. =item B<2> - Error parsing OpenSearch Description. =item B<3> - No matching search type found. =item B<4> - Cannot find perl module WWW::OpenSearch. =item B<5> - Unhandled error from WWW::OpenSearch. =back =head1 DEPENDENCIES Requires the module WWW::OpenSearch (Debian package libwww-opensearch-perl). =head1 BUGS Only supports GET queries. Please report any bugs found to ianb@erislabs.net =head1 SEE ALSO L<opensearch(1)>, L<opensearch-discover(1)>, L<surfraw(1)>, L<WWW::OpenSearch(3pm)>, L<http://www.opensearch.org/> =head1 AUTHOR Ian Beckwith <ianb@erislabs.net> =head1 COPYRIGHT AND LICENSE Copyright 2006 Ian Beckwith <ianb@erislabs.net> Licensed under the same terms as surfraw. =cut �����������������������������������������������������������surfraw-2.3.0/README��������������������������������������������������������������������������������0000644�0001750�0001750�00000043406�13235013533�011013� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ Surfraw - Shell Users' Revolutionary Front Rage Against the Web Home Page: https://gitlab.com/surfraw/Surfraw ______ _ _ ______ _______ ______ _______ _ _ _ / _____)(_) (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_) ( (____ _ _ _____) ) _____ _____) ) _______ _ _ _ \____ \ | | | || __ / | ___) | __ / | ___ || || || | _____) )| |___| || | \ \ | | | | \ \ | | | || || || | (______/ \_____/ |_| |_||_| |_| |_||_| |_| \_____/ Surfraw - Shell Users' Revolutionary Front Rage Against the Web New: https://gitlab.com/surfraw/Surfraw Old: http://surfraw.alioth.debian.org Oh Baybe I need some Deep Linking Let us go Surfin' in the raw! Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, babelfish, dejanews, freshmeat, research index, slashdot and many others from the false-prophet, pox-infested heathen lands of html-forms, placing these wonders where they belong, deep in unix heartland, as god loving extensions to the shell. Surfraw abstracts the browser away from input. Doing so lets it get on with what it's good at. Browsing. Interpretation of linguistic forms is handed back to the shell, which is what it, and human beings are good at. Combined with netscape-remote or incremental text browsers, such as links (http://artax.karlin.mff.cuni.cz/~mikulas/links/), w3m (http://www.w3m.org/), and screen(1) a Surfraw liberateur is capable of navigating speeds that leave GUI tainted idolaters agape with fear and wonder. Surfraw consists of a collection of elvi, each of which knows how to search a specific web site. To see the list of elvi type: surfraw -elvi Note that sr is an alias for surfraw, so that could equally be sr -elvi To search using an elvis use: sr elviname [options] search terms.. For example, to search google for information on Debian ports, using the "I'm feeling lucky" option: sr google -l debian ports Note that putting quotes round arguments works now, so you can do, for example: sr google foo "bar baz" bam and the quoting is passed on to the search engine. ADDING THE ELVI TO YOUR PATH If you are a regular user of surfraw, you will probably get sick of typing sr or surfraw each time. You can regain the old behaviour of running the elvi directly by adding the elvi directory (usually /usr/lib/surfraw or /usr/local/lib/surfraw/) to your path, either manually or using surfraw-update-path(1). CONFIG FILES Surfraw implements the XDG basedir spec (http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html) Essentially this means global config will be in /etc/xdg/surfraw/ and local config will be in $HOME/.config/surfraw/. This can be modified by setting $XDG_CONFIG_DIRS and $XDG_CONFIG_HOME, see the spec for more details. If your system has a different sysconfdir set during configure, that will be used instead of /etc (for instance, /usr/local/etc). In the documentation below, only the default paths will be referred to. LOCAL ELVI Surfraw can use your own private elvi, store them in $HOME/.config/surfraw/elvi/. Local elvi will be listed separately at the end of 'surfraw -elvi'. Use existing elvi (e.g. google) as a template. If you think your elvi may be useful to others, consider submitting them to surfraw-devel@lists.alioth.debian.org. BOOKMARKS Surfraw now supports bookmarks. To add a bookmark, add it to to the global bookmark list in /etc/xdg/surfraw/bookmarks or to your personal bookmark list in $HOME/.config/surfraw/bookmarks The format of the bookmarks file is simple, each bookmark is on a separate line, with the bookmark and URL separated by whitespace, eg: ntk http://www.ntk.net/ To invoke a bookmark, use "surfraw bookmark" or "sr bookmark", and if an elvis of that name doesn't exist, it searches for a bookmark of that name instead. There are some example bookmarks in /etc/xdg/surfraw/bookmarks CUSTOM SEARCH Several elvi use a search engine with site: and inurl: keywords. The search engine used can be customized by setting the environment variable SURFRAW_customsearch_provider or using the command-line argument -customsearch= Currently google and duckduckgo are supported Examples: SURFRAW_customsearch_provider=duckduckgo sr mysqldoc -v=5.5 select sr pgdoc -customsearch=google -v=9.1 select The default is to use duckduckgo. Currently affected elvi: mdn mysqldoc netbsd openbsd pgdoc slinuxdoc INSTALLATION Surfraw is installed with the standard ./configure; make; make install procedure. See INSTALL for more details. If you obtained surfraw direct from the git repository rather than a release tarball, run ./prebuild to generate the autotools build files *before* running ./configure. Note that the opensearch elvis depends on the perl libraries WWW::OpenSearch, HTML::Parser and LWP (libwww-perl). If you don't want to install opensearch, use ./configure --disable-opensearch. Surfraw supports the following options to ./configure: --with-text-browser=BROWSER Use BROWSER as text-mode browser --with-graphical-browser=BROWSER Use BROWSER as graphical-mode browser --with-elvidir=DIR Use DIR as location for storing elvi --disable-opensearch Disable OpenSearch support --disable-sr Disable installing sr alias By default, the text and graphical browsers are detected from a list of installed browsers at configure time. elvidir defaults to $(libdir)/surfraw (probably /usr/local/lib/surfraw). EXAMPLES $ surfraw google -results=100 RMS, GNU, which is sinner, which is sin? $ sr wikipedia surfraw $ sr austlii -method=phrase dog like $ /usr/lib/surfraw/rhyme -method=perfect Julian OPTIONS Global options are common to all Surfraw elvi (clients). You can get a list of the currently installed elvi by just typing `surfraw -elvi'. For example: $ surfraw -elvi GLOBAL ELVI: W -- Activate Surfraw defined web-browser acronym -- Look for acronyms definitions (www.acronymfinder.com) ads -- Search SAO/NASA Astrophysics Data System alioth -- Search Alioth (alioth.debian.org) amazon -- Search the amazon.com bookstore archpkg -- Search Arch Linux Packages (www.archlinux.org/packages/) archwiki -- Search the Arch Linux Wiki arxiv -- Search arXiv E-Print Archive for articles ask -- Question the web using Ask Jeeves (www.ask.com) aur -- Search aur.archlinux.org for PKGBUILDs austlii -- Search Australian Law docs (www.austlii.edu.au) bbcnews -- Search BBC News (news.bbc.co.uk) bing -- Search the web using Microsoft's Bing (www.bing.com) bookfinder -- Search for books using www.bookfinder.com bugmenot -- Bypass compulsory web registration with bugmenot.com bugzilla -- Search for bugs on Bugzilla bugtrackers cia -- Search CIA documents at www.cia.gov cisco -- Search Cisco documentation (www.cisco.com) cite -- Search computer science papers (citeseerx.ist.psu.edu) cliki -- Search the common lisp wiki cnn -- Search on CNN (cnn.com) comlaw -- Search Australian Law using Comlaw (www.comlaw.gov.au) commandlinefu -- Search on www.commandlinefu.com ctan -- Search the Comprehensive TeX Archive Network (ctan.org) currency -- Convert currencies with the Universal Currency Converter (www.xe.net/ucc) cve -- Search for CAN assignments in CVE debbugs -- Search the debian BTS (bugs.debian.org) debcodesearch -- Search debian source code debcontents -- Search contents of debian/ubuntu packages (packages.debian.org/packages.ubuntu.com) deblists -- Search debian mailing lists (lists.debian.org/search.html) deblogs -- Show changelogs for a package in Debian main (changelogs.debian.net) debpackages -- Search debian/ubuntu packages (packages.debian.org/packages.ubuntu.com) debpkghome -- Visit the home page for a Debian package debpts -- Search the Debian Package Tracking System (packages.qa.debian.org) debsec -- Search the Debian Security Tracker for CVE ids or package names debvcsbrowse -- Browse the VCS repository for a Debian package debwiki -- Search the Debian Wikis (wiki.debian.org & women.debian.org/wiki) deja -- Search usenet using Google Groups (groups.google.com) discogs -- Search the Discogs database of music information (www.discogs.com) <<<<<<< HEAD dmoz -- Search the Open Directory Project web directory (dmoz.org) duckduckgo -- Securely search the web using duckduckgo (duckduckgo.com) ======= duckduckgo -- Securely search the web using duckduckgo (www.duckduckgo.com) >>>>>>> kyle/https-elvi ebay -- Search the Ebay auction site etym -- Look up word origins at www.etymonline.com excite -- Search on Excite (www.excite.com) f5 -- Search F5 related information (www.f5.com) finkpkg -- Search Fink packages (pdb.finkproject.org) foldoc -- The Free On-Line Dictionary Of Computing (foldoc.org) 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) fsfdir -- Search the FSF/UNESCO Free Software Directory (directory.fsf.org) gcache -- Search the web using Google cache (www.google.com) genbugs -- Search the Gentoo bug tracker (bugs.gentoo.org) genportage -- Search gentoo-portage.com for packages github -- Search GitHub (https://github.com) gmane -- Search mailing list with gmane (gmane.org) google -- Search the web using Google (www.google.com) gutenberg -- Search for books on Project Gutenberg (gutenberg.org) imdb -- Search the Internet Movie Database (www.imdb.com) ixquick -- Search the web using ixquick [HTTPS] (www.ixquick.com) jamendo -- Search Jamendo: free music with Creative Commons licenses (www.jamendo.com) javasun -- Search Java API docs (java.sun.com) jquery -- Search the jQuery documentation (api.jquery.com) l1sp -- Search lisp documentation lastfm -- Search last.fm leodict -- Search Leo's German <-> English dictionary (dict.leo.org) lsm -- Search the Linux Software Map macports -- Search macports packages (macports.org) mathworld -- Search Wolfram MathWorld mdn -- Search the mozilla developer network (developer.mozilla.org) mininova -- Search the mininova bittorent source. musicbrainz -- Search MusicBrainz (musicbrainz.org) mysqldoc -- Search mysql documentation (dev.mysql.com) netbsd -- Search NetBSD related information (www.netbsd.org) nlab -- Search the nLab wiki (http://ncatlab.org) ntrs -- Search the NASA Technical Report Server openbsd -- Search OpenBSD related information (www.openbsd.org) oraclesearch -- Search an OpenSearch-enabled website pgdoc -- Search postgres documentation (www.pgdoc.com) pgpkeys -- Search the PGP key database phpdoc -- Search php documentation (php.net) pin -- Search Pinboard bookmarks (http://pinboard.in) piratebay -- Search The Pirate Bay (http://thepiratebay.org) priberam -- Look up word in Priberam online dictionary (www.priberam.pt/dlpo) pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov) rae -- Busca en el diccionario de la Real Academia de la Lengua Española (Spanish Dictionary) rfc -- Search RFCs (internet standards documents) scholar -- Search Google Scholar (scholar.google.com) scpan -- Search the Comprehensive Perl Archive Network (search.cpan.org) searx -- Search using searx metasearch engine instances (searx.me) slashdot -- Search stories on Slashdot (www.slashdot.org) slinuxdoc -- Search entries in LDP (www.linuxdoc.org) sourceforge -- Search SourceForge (www.sourceforge.net) springer -- Search Springer for Books and Articles stack -- Search Stack Overflow stockquote -- Get a single stock quote (multiple providers) thesaurus -- Look up word in Merriam-Webster's Thesaurus (www.m-w.com) translate -- Translate human languages urban -- Search urbandictionary.com for a definition w3css -- Validate a CSS URL with the w3c CSS validator (jigsaw.w3.org/css-validator) w3html -- Validate a web page URL with the w3c validator (validator.w3.org) w3link -- Check web page links with the w3c linkchecker (validator.w3.org/checklink) w3rdf -- Validate a RDF URL with the w3c RDF validator (validator.w3.org) wayback -- Search The Internet Archive's Wayback Machine for a URL (archive.org) webster -- Look up word in Merriam-Webster's Dictionary (www.m-w.com) wikipedia -- Search the free encyclopedia wikipedia wiktionary -- Search the free multilingual dictionary (wiktionary.org) woffle -- Search the web using Woffle (localhost:8080) wolfram -- Ask questions of the computational knowledge engine worldwidescience -- Search for science with www.worldwidescience.org yahoo -- Search Yahoo categories (www.yahoo.com) yandex -- Search the web using Yandex (yandex.ru) youtube -- Search YouTube (www.youtube.com) All elvi have useful low calorie help, for example: Usage: rhyme [options] [search words]... Description: Surfraw search for rhymes and other word correlations using Lycos Rhyme (rhyme.lycos.com) Example: $ rhyme Julian $ rhyme -method=rel surfer Results: Hurclean St. Julien. surfboarder, bather, natator, swimmer Local options: -method= Type of word correlation to search for prefect | Perfect rhyme syn | Synonyms hom | Homophones cons | Consonsant rhymes only rel | Semantically related words sub | Phrases spell | Similar spellings pic | Pictures shake | Match with Shakespeare archives def Find wordnet definition Default: perfect Environment: SURFRAW_rhyme_method Global options: -browser=EXECUTABLE Set browser Default: sensible-browser -elvi List Surfraw mechanisms for conquering evil -escape-url-args=yes|no Apply url escaping to arguments Default: yes Environment: SURFRAW_escape_url_args -g | -graphical Get some windowed sin Default: yes Environment: SURFRAW_graphical -help What you're reading now, dude -lh | -local-help Just show elvi-specific help, not the global options -p | -print Just print search URL, don't pass to browser -o | -o=FILE Fetch URL and dump to stdout or FILE. -new[=yes|no] Start in a new window Default: no Environment: SURFRAW_new_window -t | -text Back to the yellow brick road -q | -quote Quote arguments with " characters Default: no Environment: SURFRAW_quote_args -version Display Surfraw version (2.2.7) -- End of options Copyright: Copyright (c) 2003-2018 The Surfraw-Devel Team <surfraw-devel@lists.alioth.debian.org> Copyright (c) 2000-2001 Julian Assange <proff@iq.org> Copyright (c) 2001 Australian Institute for Collaborative Research Copyright (c) 2000 Melbourne Institute for Advanced Study If you just want to see the elvi-specific help, use elvi -lh or -local-help. The system wide configuration file can usually be found in /etc/xdg/surfraw/conf (but see 'Config files' above). This can be overridden by setting the environment variable SURFRAW_global_conf. Each user can also specify their own overrides, usually in $HOME/.config/surfraw/conf (again, see 'Config files' above). This can be overridden by setting SURFRAW_conf, either in the environment or the global config file. e.g SURFRAW_graphical_remote=yes SURFRAW_graphical_browser=mozilla SURFRAW_text_browser=w3m SURFRAW_pgpkeys_sigs=on INTEGRATION There is a browser plugin for Pentadactyl (a vimperator fork) at http://code.google.com/p/dactyl/issues/detail?id=320 For details, see: http://lists.alioth.debian.org/pipermail/surfraw-devel/2011-April/000916.html Code to integrate with uzbl is in examples/uzbl_load_url_from_surfraw RADICALIZATION Read HACKING. Surfrawize the soul of your favourite internet wonder. Join the Shell Users' Revolutionary Front Against the WWW by submitting code. Reclaim heathen lands. Bear witness to the truth. Its love will set you free. Join us on surfraw-devel@lists.alioth.debian.org _________________________________________________________________ README originally by Julian Assange Updated by Ian Beckwith _________________________________________________________________ See NEWS, and ChangeLog for a summary of changes. _________________________________________________________________ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/Makefile.am���������������������������������������������������������������������������0000644�0001750�0001750�00000007054�13235013533�012166� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������SUBDIRS = elvi test examples bin_SCRIPTS = surfraw surfraw-update-path if OPENSEARCH dist_bin_SCRIPTS = opensearch-discover opensearch-genquery endif devel_extra = banner prebuild noinst_DATA = surfraw-bash-completion surfraw.bookmarks man_MANS = surfraw-update-path.1 surfraw.1 elvi.1sr if OPENSEARCH man_MANS += opensearch-discover.1 opensearch-genquery.1 endif debian_extra = debian/NEWS debian/README.Debian debian/changelog debian/compat debian/control \ debian/copyright debian/docs debian/postrm debian/rules debian/source/format \ debian/surfraw-extra.files debian/surfraw-extra.install debian/watch EXTRA_DIST = surfraw.lsm.in surfraw.IN surfraw-update-path.IN\ surfraw.spec.in aclocal.m4 HACKING STYLE \ surfraw.1.IN elvi.1sr.IN surfraw.bookmarks links.IN \ surfraw-bash-completion.IN surfraw.conf.IN \ $(devel_extra) $(debian_extra) CLEANFILES = surfraw surfraw-update-path surfraw-update-path.1 surfraw.spec surfraw.lsm \ surfraw.1 elvi.1sr links surfraw-bash-completion surfraw.conf surfraw.1 \ elvi.1sr opensearch-discover.1 opensearch-genquery.1 BUILT_SOURCES = surfraw.conf # we cannot portably combine single suffix rules and separated dependencies # so we have to explicitly specify all the .IN rules surfraw: surfraw.IN -rm -f $@ $@.tmp sed -e 's,@VERSION\@,${VERSION},g; '\ -e 's,@ELVIDIR\@,${ELVIDIR},g; '\ -e 's,@AWK\@,${AWK},g; '\ -e 's,@PERL\@,${PERL},g; '\ -e 's,@sysconfdir\@,${sysconfdir},g ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw.conf: surfraw.conf.IN -rm -f $@ $@.tmp sed -e 's,@prefix\@,${prefix},g; '\ -e 's,@TEXTBROWSER\@,${TEXTBROWSER},g; '\ -e 's,@GRAPHICALBROWSER\@,${GRAPHICALBROWSER},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw-update-path: surfraw-update-path.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw-bash-completion: surfraw-bash-completion.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ elvi.1sr: elvi.1sr.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw.1: surfraw.1.IN -rm -f $@ $@.tmp sed -e 's,@ELVIDIR\@,${ELVIDIR},g; '\ -e 's,@sysconfdir\@,${sysconfdir},g' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ links: links.IN -rm -f $@ $@.tmp sed -e 's,@mandir\@,${mandir},g; ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ surfraw-update-path.1: surfraw-update-path -rm -f $@ pod2man $? > $@ opensearch-discover.1: opensearch-discover -rm -f $@ pod2man $? > $@ opensearch-genquery.1: opensearch-genquery -rm -f $@ pod2man $? > $@ install-data-hook: links chmod -x surfraw.conf elvi.1sr surfraw.1 mkdir -p $(DESTDIR)@sysconfdir@/xdg/surfraw cp surfraw.conf $(DESTDIR)@sysconfdir@/xdg/surfraw/conf cp $(top_srcdir)/surfraw.bookmarks $(DESTDIR)@sysconfdir@/xdg/surfraw/bookmarks while read target link ;\ do \ ln -sf $$target $(DESTDIR)/$$link ;\ done < links if INSTALLSR ln -sf surfraw $(DESTDIR)/@bindir@/sr ln -sf surfraw.1.gz $(DESTDIR)/@mandir@/man1/sr.1.gz endif uninstall-local: links -rm -f $(DESTDIR)@sysconfdir@/xdg/surfraw/conf -rm -f $(DESTDIR)@sysconfdir@/xdg/surfraw/bookmarks rmdir $(DESTDIR)@sysconfdir@/xdg/surfraw 2>/dev/null rmdir $(DESTDIR)@sysconfdir@/xdg 2>/dev/null while read target link ;\ do \ rm -f $(DESTDIR)/$$link ;\ done < links if INSTALLSR rm -f $(DESTDIR)/@bindir@/sr rm -f $(DESTDIR)/@mandir@/man1/sr.1.gz endif submit-lsm: surfraw.lsm mail -s add LSM@qqx.org < $? test: all surfraw.conf make -C test test .PHONY: test ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/surfraw.1.IN��������������������������������������������������������������������������0000644�0001750�0001750�00000021647�13235013533�012216� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH SURFRAW 1 "Feb 03, 2004" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp <n> insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME surfraw \- a fast unix command line interface to WWW services .SH SYNOPSIS .B surfraw .I elviname [options] search words ... .br .B sr .I elviname [options] search words ... .br .B sr \-elvi .br .B sr .I [options] bookmark [search words] .br .SH DESCRIPTION Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, dejanews, freshmeat, research index, slashdot and many others from the false\(hyprophet, pox\(hyinfested heathen lands of html\(hyforms, placing these wonders where they belong, deep in unix heartland, as god loving extensions to the shell. .PP Surfraw consists of a collection of \fBelvi\fP, each of which knows how to search a specific web site. To see the list of elvi type: surfraw \-elvi Note that sr is an alias for surfraw, so that could equally be sr \-elvi To search using an elvis use: sr elviname [options] search terms.. For example, to search google for information on Debian ports, using the "I'm feeling lucky" option: sr google \-l debian ports .SS Adding the elvi to your path If you are a regular user of surfraw, you will probably get sick of typing sr or surfraw each time. You can regain the old behaviour of running the elvi directly by adding the elvi directory (\%@ELVIDIR@) to your path, either manually or using \fB\%surfraw\-update\-path(1)\fP. .SS Bookmarks Surfraw supports bookmarks. To add a bookmark, add it to \fB\%@sysconfdir@/xdg/surfraw/bookmarks\fP or \fB\%$HOME/.config/surfraw/bookmarks\fP The format of the bookmarks file is simple, each bookmark is on a separate line, with the bookmark and URL separated by whitespace, eg: ntk http://www.ntk.net/ If the url contains the string \fB%s\fP, you can specify an optional argument to the bookmark. Without an argument, only the domain will be returned. With arguments, \fb%s\fP will be replaced by the arguments. This obviates the need to create elvi for sites with very simple search options. To invoke a bookmark, use "surfraw bookmark" or "sr bookmark", and if an elvis of that name doesn't exist, it searches for a bookmark of that name instead. There are some example bookmarks in \%@sysconfdir@/xdg/surfraw/bookmarks .SH OPTIONS Use \fB\%sr elviname \-local\-help\fP for elvi\(hyspecific options. The following options work with all elvi. .TP .B \-help Show summary of options (including elvi\(hyspecific options). .TP .B \-local-help Show elvi\(hyspecific options. .TP .B \-version Show version of program. .TP \fB\-browser=\fP\fIEXECUTABLE\fP Set browser (default: sensible\-browser). .TP .B \-elvi Display a list of other Surfraw mechanisms for conquering evil. .TP .B \-escape\-url\-args=yes|no Apply url escaping to arguments (default: yes) .TP .B \-q|\-quote Bracket all arguments with " characters (default: no). Note that putting quotes round arguments works now, so you can do, for example: sr google foo "bar baz" bam and the quoting is passed on to the search engine .SH EXAMPLES $ sr ask why is jeeves gay? $ surfraw google \-results=100 RMS, GNU, which is sinner, which is sin? $ sr austlii \-method=phrase dog like $ @ELVIDIR@/rhyme \-method=perfect Julian .SH CONFIGURATION Surfraw uses the XDG basedir spec (http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html) to locate config files. The default locations are shown below, but can be modified by setting the environment variables .B $XDG_CONFIG_HOME and .B $XDG_CONFIG_DIRS. See the spec for more details. Surfraw gets its configuration from three sources, in order: .IP 1. 4 Environment variables .IP 2. \%@sysconfdir@/xdg/surfraw/conf .IP 3. \%$HOME/.config/surfraw/conf .PP @sysconfdir@/xdg/surfraw.conf and $HOME/.config/surfraw/conf are both fragments of bourne\(hyshell style shell script. @sysconfdir@/xdg/surfraw.conf should use def and defyn to define variables. These functions set variables unless they are already set by the environment. defyn is used for boolean configuration variables, def for all others. For instance: def SURFRAW_text_browser /usr/bin/lynx defyn SURFRAW_graphical no $HOME/.config/surfraw/conf should use sh\(hystyle entries, eg: SURFRAW_text_browser=/usr/bin/lynx SURFRAW_graphical=no This is because you want them to override environment variables unconditionally. .SH CONFIGURATION VARIABLES .TP .B SURFRAW_global_conf Location of global configuration file. Default: def SURFRAW_global_conf @sysconfdir@/xdg/surfraw/conf .TP .B SURFRAW_conf Location of per\(hyuser configuration file. Default: def SURFRAW_conf $HOME/.config/surfraw/conf .TP .B SURFRAW_graphical Whether to use a graphical browser. Default: defyn SURFRAW_graphical no .TP .B SURFRAW_text_browser Name/path of text browser executable. e.g. links, lynx, w3m Default: def SURFRAW_text_browser sensible\-browser .TP .B SURFRAW_graphical_browser Name/path of graphical browser executable. e.g mozilla, netscape etc. Default: def SURFRAW_graphical_browser sensible\-browser .TP .B SURFRAW_text_browser_args Text browser arguments, or "none". Default: def SURFRAW_text_browser_args none .TP .B SURFRAW_graphical_browser_args Graphical browser arguments, or "none". Default: def SURFRAW_graphical_browser_args none .TP .B SURFRAW_graphical_remote Whether to use "\fB\-remote openURL\fP" for graphical browser. Default: defyn SURFRAW_graphical_remote yes .TP .B SURFRAW_new_window When using SURFRAW_graphical_remote, open a new window? Default: defyn SURFRAW_new_window no .TP .B SURFRAW_screen Name of screen command to run. Default: def SURFRAW_screen screen .TP .B SURFRAW_new_screen If surfraw is running under screen(1), start a new screen for each text browser invocation? Default: defyn SURFRAW_new_screen no .TP .B SURFRAW_screen_args Arguments to pass to the SURFRAW_screen command Default: def SURFRAW_screen_args "" .TP .B SURFRAW_quote_args Whether to "quote" all the arguments. Default: defyn SURFRAW_quote_args no .TP .B SURFRAW_quote_ifs Whether to re\(hyquote arguments if they have spaces in, ie so: sr google foo "bar baz" bam .br works as expected. Default: defyn SURFRAW_quote_ifs yes .TP .B SURFRAW_results Default number of results to return (not supported by all elvi). Default: def SURFRAW_results 30 .TP .B SURFRAW_escape_url_args Whether to escape [% "$%&+,/:;<=>?@[\^{|}~'] characters in command line arguments subsequently used to construct a url. Default: defyn SURFRAW_escape_url_args yes .SH FILES .TP .B @ELVIDIR@ Location of the elvi. .TP .B ${HOME}/.config/surfraw/elvi Per\(hyuser elvi. .TP .B @sysconfdir@/xdg/surfraw/conf Default system wide configuration file. .TP .B $HOME/.config/surfraw/conf Default per\(hyuser config file .TP .B @sysconfdir@/xdg/surfraw/bookmarks System wide bookmarks file. .TP .B $HOME/.config/surfraw/bookmarks Per\(hyuser bookmarks file. .SH BUGS Please report any bugs found (or any web sites in need of surfrawizing) either via the debian bug tracking system (\%http://bugs.debian.org/) or to the surfraw\-devel list (\%surfraw\-devel@lists.alioth.debian.org). .SH SEE ALSO http://alioth.debian.org/projects/surfraw/ .SH PROPAGANDA .ce 1000 Oh Baybe I need some Deep Linking Let us go Surfin' in the raw! .ce 0 Read HACKING. Surfrawize the soul of your favourite internet wonder. Join the \fBS\fPhell \fBU\fPsers' \fBR\fPevolutionary \fBFr\fPont \fBA\fPgainst the WW\fBW\fP by submitting code. Reclaim heathen lands. Bear witness to the truth. Its love will set you free. Join us on surfraw\-devel@lists.alioth.debian.org .SH AUTHORS Originally written by Julian Assange. Now maintained by the surfraw\-devel team <\%surfraw\-devel@lists.alioth.debian.org>. See the file AUTHORS for the full list of contributors. Man page by Ian Beckwith, based on the original README and an earlier man page by Christian Surchi. .SH COPYRIGHT Copyright (c) 2003-2018 The Surfraw\-Devel Team <surfraw\-devel@lists.alioth.debian.org> Copyright (c) 2000-2001 Julian Assange <proff@iq.org> Copyright (c) 2001 Australian Institute for Collaborative Research Copyright (c) 2000 Melbourne Institute for Advanced Study The copyright holders listed above assert no rights on this release of the software ``surfraw'' and thereby explicity place this release into the into the public domain. Do what you will. �����������������������������������������������������������������������������������������surfraw-2.3.0/ChangeLog�����������������������������������������������������������������������������0000644�0001750�0001750�00000070222�13235013533�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������2018-01-13 Jason Ryan <jasonwryan@gmail.com> * Bump version to 2.3.0 * Select Perl version at buildtime (Mark Meyer) * Remove lynx-cur (closes #882286) * Packages the https elvi 2017-06-07 Jason Ryan <jasonwryan@gmail.com> * new elvi: wiktionary 2017-07-14 Jason Ryan <jasonwryan@gmail.com> * Moved all elvi to https * Removed elvi that don't support https: - cablesearch - dmoz - openports - opensearch - pasearch - rhyme - rpmsearch - scicom - scirus - wetandwild - yacy - yubnub 2015-09-13 Kyle Isom <kyle@imap.cc> * use awk instead of sed for listing elvi This provides better cross-platform behaviour. 2015-08-23 Jason Ryan <jasonwryan@gmail.com> * new elvi: searx 2014-09-20 Lucas Hoffmann <l-m-h at web.de> * new elvi: commandlinefu 2104-06-04 Jason Ryan <jasonwryan@gmail.com> * new elvi: nlab 2013-12-10 Ian Beckwith <ianb@erislabs.net> * yandex: disabled test: redirects to captcha when used with LWP. * Fix make distcheck: remove last traces of codesearch and scitopia. 2013-12-09 Ian Beckwith <ianb@erislabs.net> * deja: disable tests, google groups now requires javascript. * gmane: fix test. * codesearch: removed, service shut down. * scitopia: removed, service shut down. * scicom: down, status unknown, made note in NEWS. 2013-12-08 Ian Beckwith <ianb@erislabs.net> * new elvi: gmane * openbsd -mail: use gmane (directly, not via gmane elvi) * fix tests: ads, pgdoc, pin, yacy 2013-10-27 Ian Beckwith <ianb@erislabs.net> * surfraw.IN: w3_custom_search_google: don't give full path to surfraw. * pgdoc, wayback: fixed tests. 2013-10-20 Ian Beckwith <ianb@erislabs.net> * new elvi: yacy: search using yacy p2p search. -S searches ScienceNet, a yacy-based science search engine. * rae: fix url, remove -tipo option (no longer supported), disable test as there is now gratuitous javascript. 2013-10-06 Ian Beckwith <ianb@erislabs.net> * Replaced phpdoc with version posted back in 2011 by Jon Yamokoski <jon@jonyamo.net> Thanks, and apologies for missing it! * S: add test. * Include debian packaging in upstream tarball. 2013-10-05 Ian Beckwith <ianb@erislabs.net> * ask, cisco: fix elvi. * new elvi: + oraclesearch - Replaces removed sunonesearch <sigh>. + S - search using w3_custom_search. * google: -g for groups clashed with -g for graphical browser. Invoke groups with -G, -gr, -groups or -search=groups. * mdn: site invokes google custom search via gratuitous javascript, so switch to w3_custom_search. * alioth: changed test to SKIP:, works OK but won't talk to LWP, hence test breaks. * discogs, openbsd: fixed tests. * mdn, mysqldoc, pgdoc, phpdoc: added tests. * w3_custom_search: + document in README. + remove documentation for ixquick support. It still works(ish), but doesn't support enough features to support (eg) mysqldoc -v=. + add -custom-search= commandline option. * updated copyright years to 2013. 2013-09-30 Ian Beckwith <ianb@erislabs.net> * new elvi: mdn, mysqldoc, pgdoc, phpdoc * new function: w3_custom_search Is used by elvi that use a generic search engine with (eg) site: or inurl: to narrow down the search. Pass it -s=site -u=url for site: and inurl: args plus the quoted search args * new environment variable: SURFRAW_customsearch_provider to set provider used by w3_custom_search can be set to: google, duckduckgo or ixquick. Currently affects: mysqldoc, netbsd(*), openbsd(*), pgdoc, phpdoc, mysqldoc. (*) = only used by some options of elvi. * new internal variable w3_shquoted_args, contains arguments 'quoted' 'like this' for passing to w3_custom_search * Fixed url-encoding for '\' 2013-05-07 Ian Beckwith <ianb@erislabs.net> * new elvi: jquery 2013-05-04 Ian Beckwith <ianb@erislabs.net> * bump version to 2.2.9 * rae: fixed, at least as far as the test passing. Could really do with some love from someone who actually speaks spanish. * ctan: fixed search, updated options. Note command-line options have changed. * genportage: switch to gpo.zugaina.org * debcodesearch: new (trivial) elvi for codesearch.debian.net * jamendo: fix url, disable test (search now javascript) * deli: fix url; remove options; disable test (search now javascript) 2013-04-28 Ian Beckwith <ianb@erislabs.net> * musicbrainz: fixed mbid search. * springer: fixed test. 2013-04-27 Ian Beckwith <ianb@erislabs.net> * javasun: fixed test. 2013-04-24 Ian Beckwith <ianb@erislabs.net> * Rewrote deblists for new xapian search. + -author, -lists, -lang no longer supported. + added -ml and -mv to show message id links and list view. * Removed happypenguin. Currently defunct and they are talking about a rewrite, so when it is back it will need fixing anyway. 2012-10-22 Ian Beckwith <ianb@erislabs.net> * Fixed elvi: cisco, slashdot, slinuxdoc. * Removed elvi: scroogle (site gone). * Fixed tests: acronym, bbcnews, bugzilla, cisco, cite[1], currency, discogs, excite, fsfdir, gcache, github, imdb, ixquick, lastfm, leodict, openbsd[2], scholar. * test/Makefile.am: Added missing tests to EXTRA_DIST 2012-06-28 Manolo Martínez <manolo@austrohungaro.com> * examples/hooks.lua: Added elinks integration script 2012-06-28 Ivy Foster <joyfulgirl@archlinux.us> * Further simplified searchable bookmarks 2012-06-28 Thomas Zervogiannis <tzervo@gmail.com> * Simplified searchable bookmarks 2012-06-27 Ivy Foster <joyfulgirl@archlinux.us> * Fixed arg parsing in searchable bookmarks * New variable: SURFRAW_bookmark_search_elvis + When using searchable bookmarks, if all else fails run this elvis. Defaults to google * Updated manual to reflect changes to bookmarks * duckduckgo: Removed -p option. -safe still works. + Prevents clobbering global option -p[rint]. 2012-06-27 Thomas Zervogiannis <tzervo@gmail.com> * Added searchable bookmarks + Bookmarks can now be searchable by adding '%s' to the url string. 2012-06-01 Jason Ryan <jasonwryan@surfraw.org> * New elvi: github (search github.com) 2012-03-17 Ivy Foster <joyfulgirl@archlinux.us> * Fix a typo in duckduckgo code. 2012-03-17 Ivy Foster <joyfulgirl@archlinux.us> * Keep duckduckgo's -l[ucky] from clobbering -lh 2012-01-10 Ivy Foster <joyfulgirl@archlinux.us> * aur: now uses HTTPS by default + On the AUR, connecting via HTTP disables login. + Added switch -no-https to enable connection via plain HTTP 2011-10-10 Ian Beckwith <ianb@erislabs.net> * surfraw.IN: test_elvi(): tweak sed regex * add tests for f5, cisco and pin. 2011-10-10 Shain Singh <shain.singh@gmail.com> * New elvi: f5, cisco 2011-10-10 Jason Ryan <jasonwryan@gmail.com> * New elvi: pin (search pinboard.in). 2011-09-09 Kyle Isom <coder@kyleisom.net> * New elvi: wolfram - query Wolfram Alpha * Author: Kyle Isom <coder@kyleisom.net> * Added test for wolfram. 2011-08-09 Ian Beckwith <ianb@erislabs.net> * New elvi: priberam - search Portuguese dictionary. Author: Paulo Almeida <paulo@diasalmeida.com> * Added test for priberam. 2011-07-11 Ian Beckwith <ianb@erislabs.net> * netbsd: fix normal & mail search. google custom searches were complaining I was a bot, so I switched to normal google searches with site:{mail-index,}.netbsd.org. * cia: fix search URL 2011-06-17 Ian Beckwith <ianb@erislabs.net> * arxiv: fix -scope=author with single-word queries. Thanks to Nikos Apostolakis. * btw, note about entry below, netbsd make *does* support '$<', but only in suffix rules. 2011-06-16 Ian Beckwith <ianb@erislabs.net> * Fix more make(1) portability problems. Either I am horribly confused or netbsd make (or at least pmake in debian) doesn't support '$<'. Switched to '$?'. * Also switched submit-lsm rule to '$?'. Thanks to Kyle Isom. * Removed long-obsolete commented-out sourceforge upload rules. 2011-06-15 Ian Beckwith <ianb@erislabs.net> * scitopia, worldwidescience: fixed URLs. * Fixed make portability problems. We cannot portably combine single suffix rules (foo.IN->foo) and separated dependencies so we have to explicitly specify all the .IN rules. The solution we used for this until now was specific to GNU make. * Removed Makefile.include, no longer used. * './configure --enable-opensearch' now only controls installation of the (direct) dependencies for opensearch, not opensearch itself, as opensearch now falls back to using a remote reflector if opensearch-discover(1) and opensearch-genquery(1) aren't found. * yandex: fix test. 2011-06-14 Ian Beckwith <ianb@erislabs.net> * musicbrainz, codesearch, rpmsearch: Fixed URLs, options and tests. The sites have all changed significantly which means both new options and no-longer-supported options. Codesearch has gone all ajaxy, so I've implemented the options via the search string, e.g. adding " package:foo". Disabled codesearch.test, as it now needs javascript. Codesearch on both google.com and google.co.uk was acting up, so I've pointed it at google.fr. * Removed filesearching elvi, it now requires a 'Referer:' header to work. There is no browser-portable way to specify a 'Refer[r]er:' header, plus we should probably take it as a hint. * Tweaked debian packaging. * Updated NEWS. 2011-06-13 Ian Beckwith <ianb@erislabs.net> * w3link: fixed URLs. 2011-06-10 Ian Beckwith <ianb@erislabs.net> * Fixed ctan. Option -doc has been replaced by -id. Options are no longer mutually exclusive, you can now do (eg) ctan -d -i -n texlive. 2011-06-09 Ian Beckwith <ianb@erislabs.net> * fixed tests: debwiki, ntrs, wayback. 2011-06-07 Ian Beckwith <ianb@erislabs.net> * Default to surfraw_graphical_remote=no, as chromium doesn't support "-remote openURL". 2011-05-31 Jason Ryan <jasonwryan@gmail.com> * Add options to archpkg. 2011-05-12 Sara Fauzia <sara@archlinux.us> * Fix archpkg URL. 2011-05-12 Ian Beckwith <ianb@erislabs.net> * surfraw.IN: + if elvi doesn't exist, send usage to stderr not stdout. + bookmark names: do exact match not substring match. * Added tests for archwiki, deli & stack. * README: + added INTEGRATION section on uzbl and pentadactyl. + upcased section headings for clarity. 2011-05-12 Jason Ryan <jasonwryan@gmail.com> * New elvi: + archwiki: search the arch wiki. + deli: search delicious.com. + stack: search stackoverflow.com and friends. 2011-03-21 Ian Beckwith <ianb@erislabs.net> * google: Added -safe=default|off|moderate|strict option for Safe Search. 2011-03-21 Ivy Foster <joyfulgirl@archlinux.us> * Added Google Translate to elvi/translate. 2011-03-03 Ian Beckwith <ianb@erislabs.net> * opensearch: new option -r, uses redirector at http://erislabs.net/ianb/webtools/opensearch/ instead of calling opensearch-discover and opensearch-genquery. -r is selected automatically if those tools are not installed. This enables us to ship opensearch in the main surfraw package and it still functions if the dependencies are not installed. See debian/changelog. * wikipedia: new options: + -d, uses a redirector at http://erislabs.net/ianb/webtools/wpdp/ This redirector searches for a page with that name at wikipedia. If not found, it searches deletionpedia, if not found there it falls back to a normal wikipedia search. + -f=w|d, -fallback=wikipedia|deletionpedia Implies -d. If page not found at either wikipedia or deletionpedia, whether to fallback to wikipedia search or deletionpedia search. * google: + support video, maps and news. + new options -i, -v, -m, -n, shortcuts for -search={images,videos,maps,news}. * debcontents, debpackages: update docs for new arches and distributions. * bugzilla: + fix url so it works with redhat & eclipse bugzillas too. + enable -s=redhat. * ixquick, w3css: fix tests. * opensearch, wikipedia: add redirector tests. 2011-02-20 Ian Beckwith <ianb@erislabs.net> * New elvi: bugzilla - searches various bugzillas, defaults to kernel. * pgpkeys: add more options, support more keyservers, default to sks-keyservers.net. * bump version to 2.2.8. * test/Makefile.am: add cablesearch.test. 2011-02-19 Ian Beckwith <ianb@erislabs.net> * lastfm: fix url to avoid a redirect that mangled args with spaces. * debbugs: add -s as an alias for -search=src. * surfraw.IN: (finally) update copyright year to 2011. * remove traces of port elvi from build system. 2011-02-09 Kyle Isom <coder@kyleisom.net> * fix a number of tests to match current site formats 2011-01-12 Kyle Isom <coder@kyleisom.net> * New elvi: + cablesearch - search wikileaks cables + duckduckgo - replace with better implementation + openports - search openbsd ports 2010-12-04 Jakob <jakob@pipefour.org> * new elvis: pasearch. 2010-12-08 Ian Beckwith <ianb@erislabs.net> * arxiv: Thanks to MT <mt_void@warpmail.net> for patch that fixes: 1. Search queries with more than two terms would fail, e.g. 'supermassive black hole'. 2. Full text search was broken, it works now. 3. Enhancement: quoting the query now does an exact string match. 2010-10-29 Ian Beckwith <ianb@erislabs.net> * wayback: advanced search is broken, rip out all options and use basic search. * w3_url_escape: add /g to '/'->'%2F' replacement. * uzbl_load_url_from_surfraw: use @AWK@ to pick up ./configure's choice of awk implementation. 2010-10-28 Ian Beckwith <ianb@erislabs.net> * Support -local-help, --local-help or -lh to get elvi-specific help without displaying the global options. This works for all elvi and the main surfraw script. * google, duckduckgo, opensearch, wayback: tweak overbroad option parsing so it doesn't interfere with -lh. * Support -h as a synonym for -help. 2010-10-25 Ian Beckwith <ianb@erislabs.net> * new elvi: scirus, scitopia, worldwidescience. * yahoo: reduced query string to just p and n options. * openbsd: support -misc and -tech. Thanks to Sunil Nimmagadda for the patch. * removed cddb: gracenote made the "hard decision" to remove the website search. sigh. * removed altavista: is now just a front-end to yahoo. * removed fast: another yahoo front-end. * imdb: fix test. * javasun: oracleized URLs. * w3link: fixed URL. 2010-08-22 Jameson Rollins <jrollins@finestructure.net> * surfraw.IN: Improve listing of elvi. 2010-08-20 James Rowe <jnrowe@gmail.com> * new elvi: ads. Thanks to Jameson Rollins. 2010-07-02 Ian Beckwith <ianb@erislabs.net> * new elvi: yandex. Thanks to Uspenskiy Andrey. 2010-05-06 Ian Beckwith <ianb@erislabs.net> * uzbl_load_url_from_surfraw: fix menu. Thanks to Sumant Oemrawsingh. * Fixed tests: deblists google openbsd. 2010-04-28 Ian Beckwith <ianb@erislabs.net> * configure.in: test for google-chrome, opera and links2. 2010-04-22 Ian Beckwith <ianb@erislabs.net> * debwiki: remove -w, Debian Women wiki is now being merged into main wiki. Thanks to Simone Fittabile. * debwiki.test: stop testing -w option. * surfraw.IN: change an awk to @AWK@. 2010-04-21 Ian Beckwith <ianb@erislabs.net> * New elvi: jamendo - Search Jamendo: free music with Creative Commons licenses (www.jamendo.com). Thanks to Simone Fittabile. * wikipedia, ixquick: Support https. Thanks to Simone Fittabile. * wikipedia: tweak Simone's patch to support https for start page and document the SURFRAW_wikipedia_ssl variable. * ixquick: add -nossl option. * javasun.test: revert to previous test, works again. 2010-04-19 James Rowe <jnrowe@gmail.com> * genpkg: removed, use genportage. 2010-04-16 Ian Beckwith <ianb@erislabs.net> * New elvi: + scroogle: Search Google anonymously via www.scroogle.org. + duckduckgo: Search the web via duckduckgo.com. * Fix tests: excite, javasun, musicbrainz, yahoo. 2010-03-03 James Rowe <jnrowe@gmail.com> * bookfinder: fix ISBN search test. 2010-03-01 Ian Beckwith <ianb@erislabs.net> * Removed autotools-generated files from git repo use ./prebuild to regenerate. * Lower required automake version to 1.10. * prebuild: try and find a sane set of autotools, then call autoreconf -vi * Add autotools-generated files to .gitignore * Bump version to 2.2.7 * cnn: fix URL. * cnn.test: Disable. Bloody CNN now needs javascript for search, so should be tested manually. * W, yahoo: fix tests. * Remove unused '-quiet' option. * Update AUTHORS. * Add a note to appendix 1 of HACKING about updating AUTHORS. * runtests: explicitly use elvi and config from source tree, now works when surfraw is not installed (but you need to have run make). * test/Makefile.am: fix bookfinder typo, add bing.test. * remove leading 'sr ' from command lines for following tests: acronym aur bing cliki gcache genportage google javasun l1sp lsm mathworld mininova piratebay youtube * HACKING, README, test/README: document autotools and test suite changes. * Makefile.am: add surfraw.conf to BUILT_SOURCES so it is made by 'make'. This may be a misuse of BUILT_SOURCES. 2010-02-22 Ivy Foster <joyfulgirl@archlinux.us> * Added `-ns|-newscreen' switch for setting $SURFRAW_new_screen. 2010-02-15 James Rowe <jnrowe@gmail.com> * elvi/imdb: Fixes for upstream search changes. Thanks to Sadako. * New elvi: bookfinder, thanks to Ivy Foster. 2010-02-14 James Rowe <jnrowe@gmail.com> * Added $SURFRAW_screen_args for passing arguments to the defined screen tool, thanks to Ivy Foster. * Support for using tmux as $SURFRAW_screen, thanks once again to Ivy Foster. * New elvi: bugmenot, thanks to Ivy Foster. 2010-02-05 Ian Beckwith <ianb@erislabs.net> * Added options for 'aur' elvi. Patch from Ivy Foster. 2010-02-02 Ian Beckwith <ianb@erislabs.net> * New elvi: bing, thanks to tczy. Elvi number One Hundred!!!1! 2010-01-26 James Rowe <jnrowe@gmail.com> * elvi/bbcnews: Fixes for upstreams search changes. Based on a patch by Sumant Oemrawsingh. 2010-01-06 Ian Beckwith <ianb@erislabs.net> * surfraw.1.IN: document new config locations. 2009-11-20 Ian Beckwith <ianb@erislabs.net> * test/Makefile.am: Add missing tests to EXTRA_DIST. 2009-11-13 Ian Beckwith <ianb@erislabs.net> * freebsd: new options -psearch=TYPE -psection=SEC to conduct a search of type TYPE in section SEC of ports. * netbsd: new option -ps to search ports * openbsd: new option -ps to search ports * URLs for *bsd portsearch, finkpkg, macports and rpmsearch from whohas(1), http://www.philippwesche.org/200811/whohas/intro.html * cia, pubmed: fixed tests. 2009-11-12 Ian Beckwith <ianb@erislabs.net> * New elvi: + finkpkg: search Fink packages. + macports: search macports packages. + rpmsearch: search for packages in rpm-based distros. * surfraw.IN: w3_parse_args: avoid bogus initial space in w3_args 2009-11-11 Ian Beckwith <ianb@erislabs.net> * New elvi: debpkghome: view home page of a debian package. 2009-11-10 Ian Beckwith <ianb@erislabs.net> * New elvi: acronym, gcache (google cache). Thanks to fittabile@lifegate.it * surfraw.IN: only list local elvi if $localelvidir contains files. * README: update elvi list and surfraw options. * configure.in, HACKING: specify automake 1.11 2009-11-08 Ian Beckwith <ianb@erislabs.net> * New elvi: youtube. Thanks to Sumant Oemrawsingh. 2009-11-07 Ian Beckwith <ianb@erislabs.net> * New elvi, thanks to Sumant Oemrawsingh: + cliki - search the common lisp wiki. + l1sp - search lisp documentation. + mathworld - search Wolfram MathWorld. + mininova - search mininova for torrents. 2009-11-06 Ian Beckwith <ianb@erislabs.net> * examples/uzbl_load_url_from_surfraw: + Applied patch from Sumant Oemrawsingh to strip "GLOBAL ELVI" and "LOCALELVI" and support vertical menus if patched dmenu is available. + present_menu(): use awk(1) instead of cut(1), so tabs in bookmark files are handled correctly. + Add '.IN' suffix and dependency so correct value of @AWK@ is picked up from ./configure. * Add examples/ to SUBDIRS, move uzbl_load_url_from_surfraw build logic to examples/Makefile.am * Fix 'make distcheck': + Install surfraw.bookmarks from $(top_srcdir) + Fix CLEANFILES entries for surfraw-update-path and uzbl_load_url_from_surfraw. 2009-10-27 Ian Beckwith <ianb@erislabs.net> * Added examples/uzbl_load_url_from_surfraw, thanks to Sumant Oemrawsingh. * Updated uzbl_load_url_from_surfraw to use new bookmark locations. * Fixed debsec (Thanks to Moritz Muehlenhoff, for this and all his other work). * Fixed cia. * Fixed tests: aur, debpts, lastfm. * Added -o | -o=FILE option, to fetch URL and dump to stdout or FILE. * test/Makefile.am: add debvcsbrowse.test to EXTRA_DIST * Makefile.am: install-data-hook: remove execute flag from generated files surfraw.conf, elvi.1sr & surfraw.1. 2009-10-20 Ian Beckwith <ianb@erislabs.net> * Move config files to follow XDG basedir spec (http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html) Global config files are searched for in: + $SURFRAW_global_conf if set. + $XDG_CONFIG_DIRS/surfraw/{conf,bookmarks} ($XDG_CONFIG_DIRS is $PATH-style colon separated list) + @sysconfdir@/xdg/surfraw/{conf,bookmarks} (@sysconfdir@ is usually /etc or /usr/local/etc/) + @sysconfdir@/surfraw.{conf,bookmarks} (for backwards compatibility) Local config files & elvi are searched for in: + $SURFRAW_conf if set (for per-user conf file only) (no longer set by default config files) + $XDG_CONFIG_HOME/surfraw/{conf,bookmarks,elvi/} + $HOME/.config/surfraw/{conf,bookmarks,elvi/} + $HOME/.surfraw.{conf,bookmarks} (for backwards compatibility). 2009-10-18 Ian Beckwith <ianb@erislabs.net> * Apply patch from James Rowe: Support per-user elvi in ~/.surfraw.d. Based on the idea by Sumant Oemrawsingh. 2009-08-28 Ian Beckwith <ianb@erislabs.net> * New elvi: genbugs (thanks to Nick White). * surfraw-bash-completion.IN: enable extglob so completion works standalone (thanks to James Rowe). See http://bugs.gentoo.org/show_bug.cgi?id=277891 2009-07-23 Ian Beckwith <ianb@erislabs.net> * Fixed tests: excite, pgpkeys, javasun. ebay(my) 2009-07-21 Ian Beckwith <ianb@erislabs.net> * New elvi: debvcsbrowse. * err(): write to stderr instead of stdout. 2009-06-28 Ian Beckwith <ianb@erislabs.net> * Bump version to 2.2.6. * Only use first matching bookmark (Thanks to Carl Fredrik Hammar). 2009-05-13 Ian Beckwith <ianb@erislabs.net> * Replaced scaleplus with comlaw. * debpackages, debcontents: updated ubuntu release names. 2009-05-12 Ian Beckwith <ianb@erislabs.net> * archpkg, bbcnews, debcontents, debwiki: fixed tests. 2009-04-05 Ian Beckwith <ianb@erislabs.net> * Support '--' to indicate end of options, so, for instance, "sr google -g -- foo -bar" works. Thanks to Andy Valencia. 2009-03-09 Ian Beckwith <ianb@erislabs.net> * Bump version to 2.2.5. * rfc: Default to HTML for RFCs and BCPs. Thanks to Micah Anderson. * rfc.test: Test tools.ietf.org. 2009-02-28 Ian Beckwith <ianb@erislabs.net> * Changed cite to use citeseerx.ist.psu.edu, the old site is no longer being updated. Modified command line options to match new site. * Amazon: fixed; updated categories. 2009-02-27 Ian Beckwith <ianb@erislabs.net> * New elvis: aur. Thanks to René Reigel. 2008-12-03 Ian Beckwith <ianb@erislabs.net> * New elvis: urban. Thanks to J. R. Mauro. * Added test for urban. * Fixed elvis: excite. * Fixed test: stockquote. 2008-10-23 Ian Beckwith <ianb@erislabs.net> * Bumped version to 2.2.4. * New elvi: ntrs, scicom, springer. Thanks to Wim Van Hoydonck. * Added tests for ntrs and springer Scicom cannot be tested as it needs javascript. 2008-09-13 Ian Beckwith <ianb@erislabs.net> * Default to graphical mode. See surfraw(1) for how to change it back. * New elvis: piratebay, genportage. Thanks to J.R. Mauro. * Add tests for piratebay and genportage. * Fix webster. * Fix test for ebay china. * README: document ./configure options 2008-08-26 Ian Beckwith <ianb@erislabs.net> * Fixed tests: amazon, debbugs, yahoo. * Added --disable-sr option to ./configure to disable installing the 'sr' symbolic link pointing to surfraw, to avoid clashes with the SR programming language. 2008-07-19 Ian Beckwith <ianb@erislabs.net> * Search for default browsers at configure time. Can be overridden with ./configure --with-text-browser=BROWSER --with-graphical-browser=BROWSER. * Use AC_PROG_AWK to detect which awk implementation to use. * slinuxdoc: switch to test on main page, google thinks search on search page is spyware shenanigans. * openbsd: fix test. * add uninstall-local targets to remove elvidir and symlinks on uninstall. 2008-07-08 Ian Beckwith <ianb@erislabs.net> * google: fix bashism, quote variable expansions (thanks to Philip Armstrong and John Briggs). 2008-07-02 Ian Beckwith <ianb@erislabs.net> * surfraw.IN:w3_url_escape: escape "`", stop escaping ".". (Thanks to Micah Anderson). * debpackages/debcontents: + update options and distributions, + add -a option to use archive.debian.net * Fix javasun test. * Add javasun.test and lsm.test to EXTRA_DIST. 2008-06-16 Ian Beckwith <ianb@erislabs.net> * Thanks to John Gruenenfelder for: + New elvi: arxiv. + surfraw-update-path: fix csh syntax. * wetandwild: switched to weather.com, as yahoo now uses AJAX. Command line options and SURFRAW_weather_* variables no longer supported. * port: fixed, original site is back. * austlii: fixed search URL and test. Method now defaults to 'auto'. * translate: fixed URLs. * w3css: fixed test. * sundocs: removed, use sunonesearch. * xxx: removed, use arxiv. * test/runtests: prefer decoded_content if available. 2008-03-24 Ian Beckwith <ianb@erislabs.net> * Thanks to James TD Smith for the following: + New elvis: javasun - search Java API Docs. + google: -country option to specify country. Also respects SURFRAW_lang variable. 2008-03-11 Ian Beckwith <ianb@erislabs.net> * debpackages/debcontents: updated ubuntu search. * freedb/cddb: updated options. * debbugs: fixed indentation. * port: point to what will hopefully be new site. * README, rae, currency: convert to utf-8. * austlii: fixed test. 2008-02-11 Ian Beckwith <ianb@erislabs.net> * New elvis: sunonesearch (replaces sunsolve). * surfraw.IN, rfc: remove bashisms. * cnn: fixed url. * debcontents: updated ubuntu distribution. * deblists: rewrote for new search interface. * debpackages: updated debian url. * genpkg: as straight search has gone, we now go to packages.gentoo.org/packages/<arg>. * yubnub: disable requoting (thanks to Nathaniel Heinrichs). * sunsolve: removed, replaced by sunonesearch. * cddb, freebsd, pgpkeys, w3link, webster, ebay(cn): fixed tests. * surfraw.1.IN, elvi.1sr.IN: properly quote hyphens. * Updated my email address. 2007-10-06 Ian Beckwith <ianb@nessie.mcc.ac.uk> * Added SURFRAW_lang variable to set default country/language. Affected elvi: amazon, bbcnews, ebay, ixquick, leodict, opensearch, translate, wetandwild, wikipedia. Thanks to Simon Ernst for the idea. * surfraw.IN (w3_url_escape): fix quoting of single quote. Thanks to Alexander Becher for the patch. * New elvis: lsm - search the Linux Software Map. * fsfdir: fixed search URL. * amazon, ebay, translate: expanded language/country list. * surfraw.lsm.in: fixed syntax of Primary-site. 2007-09-13 Ian Beckwith <ianb@nessie.mcc.ac.uk> * Actual new upstream release. * Bumped version to 2.2.0. * configure now supports --disable-opensearch. improved help macro syntax. Patches from James Rowe, thanks! * cia elvi fixed, thanks to Charles Twardy. Evidently I was wrong about there being a LWP problem with the cia test, test reenabled. * Fixed discogs test. * Moved surfraw and surfraw-update-path from dist_bin_SCRIPTS to bin_SCRIPTS so they are built rather than shipped. * Updated LSM entry. * Added new make target: make submit-lsm Mails updated LSM entry to LSM@qqx.org. * Updated copyright dates. * Updated README. 2007-09-06 Ian Beckwith <ianb@nessie.mcc.ac.uk> * Surfraw 2.1.7 * First official upstream release by the debian surfraw-devel team. For previous detailed changelog entries, see the debian changelog in debian/changelog. For a user-level summary of changes, see NEWS. ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/AUTHORS�������������������������������������������������������������������������������0000644�0001750�0001750�00000011101�13235013533�011166� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������AUTHORS Julian Assange <proff@iq.org> original author Christian Surchi <csurchi@debian.org> original debian maintainer elvi: debcontents, debbugs, debpackages Ian Beckwith <ianb@erislabs.net> current debian maintainer elvi: alioth, bbcnews, bugzilla, deblists, freedb, imdb, scpan, codesearch, debwiki, lastfm, musicbrainz, opensearch, scholar, ctan, fsfdir, gutenberg, wayback, dmoz, w3html, w3link, w3css, w3rdf, debpts, rfc, lsm, finkpkg, rpmsearch, macports, debpkghome, debvcsbrowse, scroogle, scirus, scitopia, worldwidescience, debcodesearch, jquery, mdn, mysqldoc, pgdoc, oraclesearch, S, yacy, gmane plus various tweaks/bugfixes/features. Moritz Muehlenhoff <jmm@inutil.org> elvi: debsec, ebay, leodict, wikipedia, sharereactor, pgpkeys, happypenguin plus various patches/maintenance. Thomas Smith <tgs@debian.org> Bugfixes, uploading. Stephen Stafford <bagpuss@debian.org> Bug fixes Kevin Kreamer <kkreamer@etherhogz.org> Bug fixes Christian Weisgerber <naddy@mips.inka.de> elvi: fast, thesaurus, webster Jason Harris <jharris@widowmaker.com> elvi: freebsd, openbsd, filesearching, ftpfind Ruben Pollan <meskio@terra.es> elvi: rae Ian Broadfoot <ibroadfo@cis.strath.ac.uk> elvi: yubnub James Rowe <jnrowe@ukfsn.org> plus useful patches/maintenance. Aparna Jaitly <aparnajaitly@hotmail.com> elvi: ixquick Justin B. Rye <jbr@edlug.org.uk> elvi: cia, deblogs, etym, foldoc plus useful patches. Patroklos Argyroudis <argp@cs.tcd.ie> elvi: discogs Simon Ernst <se@netmute.org> elvi: archpkg Ivy Foster <joyfulgirl@archlinux.us> elvi: bookfinder, bugmenot plus various patches/maintenance Sumant Oemrawsingh <soemraws@xs4all.nl> elvi: cliki, l1sp, mathworth, mininova, youtube plus patches, including the uzbl examples. Sadako <Sadako@hamiltonshells.ca> imdb fixes tczy <cy@wre.ath.cx> elvi: bing Simone Fittabile <fittabile@lifegate.it> elvi: acronym, gcache, jamendo plus patches. Micah Anderson <micah@debian.org> various patches René Reigel <Stormtrooperofdeath@gmx.net> elvi: aur J.R. Mauro <jrm8005@gmail.com> elvi: urban, piratebay, genportage Wim van Hoydonck <wim.van.hoydonck@gmail.com> elvi: ntrs, springer, sc John Briggs <john_briggs@telstra.com> patch to google John Gruenenfelder <johng@as.arizona.edu> elvi: arxiv csh patch James TD Smith <ahktenzero@dsl.pipex.com> elvi: javasun google country-specific options Charles Twardy <ctwardy@iet.com> fixed cia Uspenskiy Andrey <duspen@yandex.ua> elvi: yandex Jameson Rollins <jrollins@finestructure.net> elvi: ads plus tweaks. Jakob <jakob@pipefour.org> elvi: pasearch Kyle Isom <coder@kyleisom.net> elvi: cablesearch, duckduckgo, openports, wolfram plus various fixes/maintenance. Jason Ryan <jasonwryan@surfraw.org> elvi: archwiki, deli, github, stack, pin plus various fixes/maintenance Sara Fauzia <sara@archlinux.us> archpkg fix. Thomas Zervogiannis <tzervo@gmail.com> Searchable bookmarks. Paulo Almeida <paulo@diasalmeida.com> elvi: priberam Shain Singh <shain.singh@gmail.com> elvi: cisco, f5 Manolo Martínez <manolo@austrohungaro.com> examples: elinks integration (hooks.lua) Jon Yamokoski <jon@jonyamo.net> elvi: phpdoc Lucas Hoffmann <l-m-h at web.de> elvi: commandlinefu ng0 <ng0@we.make.ritual.n0.is> elvi: searx THANKS TO Brian Nelson <bnelson@bloodclot.net> Christian Garbs <mitch@yggdrasil.mitch.h.shuttle.de> Hector Blanco <hector.blanko@hispalinux.es> Jeff Bailey <jbailey@nisa.net> Mark W. Eichin <eichin@thok.org> Teófilo Ruiz Suárez <teo@debian.org> Maru Dubshinki <marudubshinki@gmail.com> Matt Kraai <kraai@ftbfs.org> Brian Mcdonald <weifgvjlpmvr@spammotel.com> Carl Fredrik Hammar <hammy.lite@gmail.com> Andy Valencia <ajv-914-325-0787@vsta.org> Philip Armstrong <phil@kantaka.co.uk> Dan Jacobson <jidanni@jidanni.org> Sunil Nimmagadda <sunil@devio.us> Michel <synth17+deb-bugs@gmail.com> Nikos Apostolakis <nikos.ap@gmail.com> Facundo Aguirre <legion82@gmail.com> Raphael Geissert <atomo64@gmail.com> If we've missed anyone, let us know. ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/surfraw.spec.in�����������������������������������������������������������������������0000644�0001750�0001750�00000004350�13235013533�013100� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# $Id$ %define name surfraw %define version @VERSION@ %define release 1 %define builddir $RPM_BUILD_DIR/%{name}-%{version} Name: %{name} Version: %{version} Release: %{release} Vendor: Julian Assange Packager: Julian Assange proff-projects-surfraw@iq.org #URL: Source: %{name}-%{version}.tar.gz #Patch: Group: Application/Generic Copyright: GPL #Icon: #Requires: BuildRoot: /var/tmp/%{name}-%{version} BuildArchitectures: noarch Summary: Shell Users Revolutionary Front Rage Against the Web %description Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, dejanews, freshmeat, research index, slashdot and many others from the false-prophet, pox-infested heathen lands of html-forms, placing these wonders where they belong, deep in unix heartland, as god loving extensions to the shell. Surfraw abstracts the browser away from input. Doing so lets it get on with what it's good at. Browsing. Interpretation of linguistic forms is handed back to the shell, which is what it, and human beings are good at. Combined with incremental text browsers, such as links, w3m (or even lynx), and screen(1), or netscape-remote a Surfraw liberateur is capable of research speeds that leave GUI tainted idolaters agape with fear and wonder. For example: $ ask why is jeeves gay? $ google -results=100 RMS, GNU, which is sinner, which is sin? $ austlii -method=phrase dog like $ rhyme -method=perfect Julian @configure_input@ %prep %setup -n %{name}-%{version} #%patch -p1 %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} make %install if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Build the file-list automagically :) cd $RPM_BUILD_ROOT find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} %clean rm -rf $RPM_BUILD_ROOT rm ../file.list.%{name} %files -f ../file.list.%{name} %doc README ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/aclocal.m4����������������������������������������������������������������������������0000644�0001750�0001750�00000067270�13235013637�012005� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# generated automatically by aclocal 1.15 -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.15], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.15])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: <http://www.gnu.org/software/coreutils/>. If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar <conftest.tar]) AM_RUN_LOG([cat conftest.dir/file]) grep GrepMe conftest.dir/file >/dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������surfraw-2.3.0/elvi.1sr.IN���������������������������������������������������������������������������0000644�0001750�0001750�00000010763�13235013533�012026� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH ELVI 1sr "Feb 03, 2004" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp <n> insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME elvi \- surfraw(1) search tools .SH SYNOPSIS .B surfraw .I elviname [options] search words ... .br .B sr .I elviname [options] search words ... .br .B sr .I elviname \-help .br .B sr \-elvi .br .SH DESCRIPTION This is the man page for the elvi, a set of search tools that form part of \fBsurfraw(1)\fP. Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, dejanews, freshmeat, research index, slashdot and many others from the false\(hyprophet, pox\(hyinfested heathen lands of html\(hyforms, placing these wonders where they belong, deep in unix heartland, as god loving extensions to the shell. To search using this elvis, do: sr elvisname [options] search terms. For example, to search google for information on Debian ports, using the "I'm feeling lucky" option: sr google \-l debian ports To find out about options specific to this elvis, do: sr elvisname \-local\-help To find out about surfraw, see the man page for surfraw(1). To see the full list of elvi, do: sr \-elvi .SS Adding the elvi to your path If you are a regular user of surfraw, you will probably get sick of typing sr or surfraw each time. You can regain the old behaviour of running the elvi directly by adding the elvi directory (\%@ELVIDIR@) to your path, either manually or using \fBsurfraw\-update\-path(1)\fP. .SH OPTIONS Use \fB\%sr elviname \-local-help\fP for elvi\(hyspecific options. The following options work with all elvi. .TP .B \-help Show summary of options (including elvi\(hyspecific options). .TP .B \-local-help Show elvi\(hyspecific options. .TP .B \-version Show version of program. .TP \fB\-browser=\fP\fIEXECUTABLE\fP Set browser (default: sensible\-browser). .TP .B \-elvi Display a list of other Surfraw mechanisms for conquering evil. .TP .B \-escape\-url\-args=yes|no Apply url escaping to arguments (default: yes) .TP .B \-q|\-quote Bracket arguments with " characters (default: no) Note that putting quotes round arguments works now, so you can do, for example: sr google foo "bar baz" bam and the quoting is passed on to the search engine .SH EXAMPLES $ sr ask why is jeeves gay? $ surfraw google \-results=100 RMS, GNU, which is sinner, which is sin? $ sr austlii \-method=phrase dog like $ @ELVIDIR@/rhyme \-method=perfect Julian .SH BUGS Please report any bugs found (or any web sites in need of surfrawizing) either via the debian bug tracking system (\%http://bugs.debian.org/) or to the surfraw\-devel list (\%surfraw\-devel@lists.alioth.debian.org). .SH SEE ALSO http://alioth.debian.org/projects/surfraw/ .SH PROPAGANDA .ce 1000 Oh Baybe I need some Deep Linking Let us go Surfin' in the raw! .ce 0 Read HACKING. Surfrawize the soul of your favourite internet wonder. Join the \fBS\fPhell \fBU\fPsers' \fBR\fPevolutionary \fBFr\fPont \fBA\fPgainst the WW\fBW\fP by submitting code. Reclaim heathen lands. Bear witness to the truth. Its love will set you free. Join us on surfraw\-devel@lists.alioth.debian.org .SH AUTHORS Originally written by Julian Assange. Now maintained by the surfraw\-devel team <\%surfraw\-devel@lists.alioth.debian.org>. See the file AUTHORS for the full list of contributors. Man page by Ian Beckwith, based on the original README and an earlier man page for surfraw(1) by Christian Surchi. .SH COPYRIGHT Copyright (c) 2003\(hy2018 The Surfraw\-Devel Team <surfraw\-devel@lists.alioth.debian.org> Copyright (c) 2000\(hy2001 Julian Assange <proff@iq.org> Copyright (c) 2001 Australian Institute for Collaborative Research Copyright (c) 2000 Melbourne Institute for Advanced Study The copyright holders listed above assert no rights on this release of the software ``surfraw'' and thereby explicity place this release into the into the public domain. Do what you will. �������������surfraw-2.3.0/STYLE���������������������������������������������������������������������������������0000644�0001750�0001750�00000002550�13235013533�010751� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ____ _______ ___ _____ / ___|_ _\ \ / / | | ____| \___ \ | | \ V /| | | _| ___) || | | | | |___| |___ |____/ |_| |_| |_____|_____| It's important to rage against the web in _style_. Fellow surfer, take these guidelines with you when developing revolutionary elvi: FOR STATEMENTS: Prefer for something in stuff do whatever done over for something in stuff ; do whatever done IF STATEMENTS: Prefer if rage ; then surf fi over if rage ; then surf fi INITIALISING VARIABLES WITH AN EMPTY STRING The var="" syntax is preferred over var=. LEGIBILITY: Revolutionary elvi are of greatest utility when they are readable. If the consensus is that a breach of the style guide yields more readable code, the more legible option should be chosen. LEADING WHITESPACE Tabs are preferred. LINE LENGTH Lines should be wrapped at 80 characters so long as it doesn't require absurd contortions to fit this. LOCAL VARIABLE DECLARATION Function variables should be defined local. What happens in the function should stay in the function. PROCEESS SUBSTITUTION Use $() over `` for legibility. QUICHE EATING This is generally frowned upon. ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������