diff options
author | rsc <devnull@localhost> | 2004-03-02 23:11:58 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-02 23:11:58 +0000 |
commit | af78a4cd2b73800af86db8d999d80b1ef0e9bd75 (patch) | |
tree | 9b74749fd4bcea9c56914e916a0717235a1aa62d /bin/web | |
parent | efc2b0c99e1a4f9d2be9e72785d566df903c66fb (diff) | |
download | plan9port-af78a4cd2b73800af86db8d999d80b1ef0e9bd75.tar.gz plan9port-af78a4cd2b73800af86db8d999d80b1ef0e9bd75.tar.bz2 plan9port-af78a4cd2b73800af86db8d999d80b1ef0e9bd75.zip |
Little tweaks and documentation.
Diffstat (limited to 'bin/web')
-rwxr-xr-x | bin/web | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bin/web b/bin/web new file mode 100755 index 00000000..39615200 --- /dev/null +++ b/bin/web @@ -0,0 +1,35 @@ +#!/bin/sh + +plumb1() +{ + case $BROWSER in + # Other browsers here + # ... + *opera*) + $BROWSER -remote 'openURL('$i', new-page)' + ;; + *firebird*) + $BROWSER -remote 'openURL('$i', new-window)' + ;; + esac +} + +if [ $# = 0 ] +then + plumb1 about:blank +else + for i + do + if [ -f "$i" ] + then + i=file://`pwd`/$i + fi + plumb1 $i + done +fi + +case $BROWSER in +*opera*) + $BROWSER -remote 'raise()' +esac + |