Little tweaks and documentation.
This commit is contained in:
parent
efc2b0c99e
commit
af78a4cd2b
11 changed files with 178 additions and 64 deletions
35
bin/web
Executable file
35
bin/web
Executable file
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue