"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "go" between
webrowse-1.7.3.tgz and webrowse-2.0.0.tgz

About: webrowse is a tool for interfacing between a Mozilla web browser and the rest of a Unix/X11 environment, via the `-remote` option.

go  (webrowse-1.7.3.tgz):go  (webrowse-2.0.0.tgz)
skipping to change at line 22 skipping to change at line 22
*) *)
# works remotely via [rs]sh protocol, faster, .[rs]hosts not xhost auth # works remotely via [rs]sh protocol, faster, .[rs]hosts not xhost auth
# we use REMOTEHOST instead of DISPLAY for cases like remote desktops # we use REMOTEHOST instead of DISPLAY for cases like remote desktops
urlbrowser="xrshio `echo $REMOTEHOST | sed 's/^$/'$HOST/` webrowse -uw" urlbrowser="xrshio `echo $REMOTEHOST | sed 's/^$/'$HOST/` webrowse -uw"
quote=t quote=t
;; ;;
esac;; esac;;
esac esac
searchurl='https://www.google.com/search?q=' searchurl='https://www.google.com/search?q='
# startpage.com and lxquick.com may be alternatives:
privurl='https://duckduckgo.com/html/?q=' privurl='https://duckduckgo.com/html/?q='
imageurl='https://www.google.com/search?tbm=isch&q=' imageurl='https://www.google.com/search?tbm=isch&q='
videourl='https://www.google.com/search?tbm=vid&q=' videourl='https://www.google.com/search?tbm=vid&q='
indexurl="$searchurl-inurl%3ahtm+-inurl%3ahtml+intitle%3a%22index+of%22+"
mapurl='https://maps.google.com/?q=' mapurl='https://maps.google.com/?q='
dirurl='https://maps.google.com/?q='`echo -n "from $MAPADDR to "| sed 's/ /+/g'` dirurl='https://maps.google.com/?q='`echo -n "from $MAPADDR to "| sed 's/ /+/g'`
groupurl='https://groups.google.com/group/' groupurl='https://groups.google.com/group/'
newsurl='https://groups.google.com/groups?q=' newsurl='https://groups.google.com/groups?q='
#askurl='http://www.askjeeves.com/main/askjeeves.asp?ads=no&ask=' #askurl='http://www.askjeeves.com/main/askjeeves.asp?ads=no&ask='
#askurl='http://a9.com/?q=' #askurl='http://a9.com/?q='
askurl='http://www.ask.com/web?q=' askurl='http://www.ask.com/web?q='
topicurl='http://search.yahoo.com/bin/search?p=' topicurl='http://search.yahoo.com/bin/search?p='
encycurl='https://en.wikipedia.org/w/wiki.phtml?search=' encycurl='https://en.wikipedia.org/w/wiki.phtml?search='
#wordurl='https://www.google.com/search?q=define:' #wordurl='https://www.google.com/search?q=define:'
skipping to change at line 55 skipping to change at line 57
userurl='https://mcommunity.umich.edu/#search:NOPLUS' userurl='https://mcommunity.umich.edu/#search:NOPLUS'
phoneurl='https://www.google.com/search?q=phonebook:' phoneurl='https://www.google.com/search?q=phonebook:'
linkurl='https://www.linkedin.com/vsearch/f?keywords=' linkurl='https://www.linkedin.com/vsearch/f?keywords='
#cityurl='http://www.mapquest.com/maps/map.adp?city= &state=' #cityurl='http://www.mapquest.com/maps/map.adp?city= &state='
cityurl='http://www.city-data.com/cityname.php?NM=' cityurl='http://www.city-data.com/cityname.php?NM='
bookurl='https://www.amazon.com/exec/obidos/external-search' bookurl='https://www.amazon.com/exec/obidos/external-search'
bookurl="$bookurl?mode=blended&keyword=" bookurl="$bookurl?mode=blended&keyword="
#movieurl='http://www.imdb.com/Find?select=All&for=' #movieurl='http://www.imdb.com/Find?select=All&for='
#movieurl='http://www.imdb.com/find?q=' #movieurl='http://www.imdb.com/find?q='
movieurl='https://movies.netflix.com/WiSearch?v1=' movieurl='https://movies.netflix.com/WiSearch?v1='
coverurl='http://www.albumart.org/?searchindex=Music&searchkey=' coverurl='http://www.albumart.org/?searchindex=Music&searchk='
softurl='http://freecode.com/search/?section=projects&q=' softurl='http://freecode.com/search/?section=projects&q='
appurl='https://market.android.com/search?q=' appurl='https://market.android.com/search?q='
produrl='https://www.google.com/products?q=' produrl='https://www.google.com/products?q='
aucturl='http://shop.ebay.com/?_nkw=' aucturl='http://shop.ebay.com/?_nkw='
fedexurl='http://www.fedex.com/Tracking?action=track&tracknumbers=' fedexurl='http://www.fedex.com/Tracking?action=track&tracknumbers='
yuburl='http://www.yubnub.org/parser/parse?command=' yuburl='http://www.yubnub.org/parser/parse?command='
#proxyurl='https://translate.google.com/translate?sl=ja&tl=en&u='
proxyurl='http://www.gmodules.com/ig/proxy?url=' proxyurl='http://www.gmodules.com/ig/proxy?url='
cacheurl='https://www.google.com/search?q=cache:' cacheurl='https://www.google.com/search?q=cache:'
infourl='https://www.google.com/search?q=info:' infourl='https://www.google.com/search?q=info:'
arcurl='http://web.archive.org/archive_request_ng?collection=web&url=' arcurl='http://web.archive.org/archive_request_ng?collection=web&url='
randomurl='http://www.uroulette.com/visit' randomurl='http://www.uroulette.com/visit'
# go - web browse the given URL, fragmented URL, or web query # go - web browse the given URL, fragmented URL, or web query
# Steve Kinzler, kinzler@cs.indiana.edu, Apr 00/Oct 00/Jul 01 # Steve Kinzler, steve@kinzler.com, Apr 00/Oct 00/Jul 01
# see website http://www.cs.indiana.edu/~kinzler/webrowse/ # see website http://kinzler.com/me/webrowse/
# http://www.cs.indiana.edu/~kinzler/home.html#web # http://kinzler.com/me/home.html#web
opts=; bad= opts=; bad=
while : while :
do do
case $# in case $# in
0) break;; 0) break;;
*) case "$1" in *) case "$1" in
-[nv]*) opts="$opts$1";; -[nv]*) opts="$opts$1";;
skipping to change at line 95 skipping to change at line 98
*) break;; *) break;;
esac esac
shift;; shift;;
esac esac
done done
case "$bad" in case "$bad" in
?*) cat << EOF 1>&2 ?*) cat << EOF 1>&2
usage: $0 [ -nv ] [ url_piece [ url_tail ] | usage: $0 [ -nv ] [ url_piece [ url_tail ] |
{search|/}:search query | {priv|\}:ate search query | {search|/}:search query | {priv|\}:ate search query |
image:picture query | video:clip query | map:location query | image:picture query | video:clip query | index:listing query |
dir:ections query | group:newsgroup | news:usenet query | map:location query | dir:ections query | group:newsgroup |
{ask|?}:question sentence | topic:subject query | encyc:lopedia query | news:usenet query | {ask|?}:question sentence | topic:subject query |
word:dictionary query | thes:aurus query | en:translation text | encyc:lopedia query | word:dictionary query | thes:aurus query |
es:translation text | perl:documentation query | cpan:module query | en:translation text | es:translation text | perl:documentation query |
user:person query | phone:book query | link:edin query | cpan:module query | user:person query | phone:book query |
city:place query | book:store query | movie:film query | link:edin query | city:place query | book:store query |
cover:art query | soft:ware query | app:android query | prod:uct query | movie:film query | cover:art query | soft:ware query |
auct:ion query | fedex:num track | yub:nub command | proxy: url | app:android query | prod:uct query | auct:ion query | fedex:num track |
cache: url | info:rmation url | arc:hive url | random site | url:url ] yub:nub command | proxy: url | cache: url | info:rmation url |
arc:hive url | random site | url:url ]
-n nodo mode, don't actually run the browser command -n nodo mode, don't actually run the browser command
-v verbose mode, print the browser command to be run -v verbose mode, print the browser command to be run
A url_piece is appended with ".com" if it doesn't contain a dot. A url_piece is appended with ".com" if it doesn't contain a dot.
If needed, it is prepended with "www." unless it begins with a "/". It is If needed, it is prepended with "www." unless it begins with a "/". It is
also prepended with "http://" unless the protocol is already specified. also prepended with "http://" unless the protocol is already specified.
The final URL is then the concatenation of this url_piece and the url_tail. The final URL is then the concatenation of this url_piece and the url_tail.
Queries are executed with the following URLs: Queries are executed with the following URLs:
search: $searchurl search: $searchurl
priv: $privurl priv: $privurl
image: $imageurl image: $imageurl
video: $videourl video: $videourl
index: $indexurl
map: $mapurl map: $mapurl
dir: $dirurl dir: $dirurl
group: $groupurl group: $groupurl
news: $newsurl news: $newsurl
ask: $askurl ask: $askurl
topic: $topicurl topic: $topicurl
encyc: $encycurl encyc: $encycurl
word: $wordurl word: $wordurl
thes: $thesurl thes: $thesurl
en: $enurl en: $enurl
skipping to change at line 157 skipping to change at line 162
random $randomurl random $randomurl
EOF EOF
exit 1;; exit 1;;
esac esac
case "$#" in case "$#" in
0) set x `sed 1q`; shift;; 0) set x `sed 1q`; shift;;
esac esac
case "$1" in case "$1" in
[/\\?e]:*|search:*|priv:*|image:*|video:*|map:*|dir:*|group:*|news:*|ask:*|\ [/\\?e]:*|search:*|priv:*|image:*|video:*|index:*|map:*|dir:*|group:*|news:*|\
topic:*|encyc:*|word:*|thes:*|en:*|es:*|perl:*|cpan:*|user:*|phone:*|link:*|\ ask:*|topic:*|encyc:*|word:*|thes:*|en:*|es:*|perl:*|cpan:*|user:*|phone:*|\
book:*|movie:*|cover:*|soft:*|app:*|prod:*|auct:*|fedex:*|yub:*|proxy:*|\ link:*|book:*|movie:*|cover:*|soft:*|app:*|prod:*|auct:*|fedex:*|yub:*|\
cache:*|info:*|arc:*) proxy:*|cache:*|info:*|arc:*)
case "$1" in case "$1" in
/:*) url="$searchurl";; /:*) url="$searchurl";;
\\:*) url="$privurl";; \\:*) url="$privurl";;
\?:*) url="$askurl";; \?:*) url="$askurl";;
e:*) url="$encycurl";; e:*) url="$encycurl";;
perl:*) case "$*" in perl:*) case "$*" in
perl:perl*|perl:*::*) url="$perlmurl";; perl:perl*|perl:*::*) url="$perlmurl";;
*) url="$perlfurl";; *) url="$perlfurl";;
esac;; esac;;
*) key=`echo "$1" | sed 's/:.*//'` *) key=`echo "$1" | sed 's/:.*//'`
 End of changes. 8 change blocks. 
18 lines changed or deleted 23 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS