tweb: add camino as a $BROWSER - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 6c99870701d4a71d429a26f357859416c875b2fb
 (DIR) parent 362264eb516483d6e2f45ba1e0ab6bcaf2d4f0ee
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Wed,  8 Oct 2008 14:58:14 -0700
       
       web: add camino as a $BROWSER
       
       Diffstat:
         M bin/web                             |      23 ++++++++++++++++++++++-
         M man/man1/web.1                      |       7 ++++---
       
       2 files changed, 26 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/bin/web b/bin/web
       t@@ -30,6 +30,21 @@ plumbsafari()
                ' | osascript
        }
        
       +plumbcamino()
       +{
       +        echo '
       +                tell application "Camino"
       +                activate
       +                tell application "System Events"
       +                tell process "camino"
       +                keystroke "t" using {command down}
       +                end tell
       +                end tell
       +                Get URL "'$1'"
       +                end tell
       +        ' | osascript
       +}
       +
        plumbapple()
        {
                case ${BROWSER:-none} in
       t@@ -39,8 +54,14 @@ plumbapple()
                safari)
                        plumbsafari "$@"
                        ;;
       +        camino)
       +                plumbcamino "$@"
       +                ;;
                none)
       -                if [ -d /Applications/Firefox.app ]
       +                if [ -d /Applications/Camino.app ]
       +                then
       +                        plumbcamino "$@"
       +                elif [ -d /Applications/Firefox.app ]
                        then
                                plumbfirefox "$@"
                        else
 (DIR) diff --git a/man/man1/web.1 b/man/man1/web.1
       t@@ -45,10 +45,11 @@ opens each URL in a new tab rather than a new window.
        .PP
        When run under Mac OS X,
        .B $BROWSER
       -should be set to the string
       -.B safari
       +should be set to
       +.B camino ,
       +.B firefox ,
        or
       -.BR firefox .
       +.BR safari .
        .I Web
        uses AppleScript to talk to the browser.
        If