aboutsummaryrefslogtreecommitdiff
path: root/plumb
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-12-11 17:48:38 +0000
committerrsc <devnull@localhost>2003-12-11 17:48:38 +0000
commit32f69c36e0eec1227934bbd34854bfebd88686f2 (patch)
tree1587e9de84816b77168afa81c1594cc686809910 /plumb
parentac244f8d287a6119155ea672c8fd13c487c5e4c7 (diff)
downloadplan9port-32f69c36e0eec1227934bbd34854bfebd88686f2.tar.gz
plan9port-32f69c36e0eec1227934bbd34854bfebd88686f2.tar.bz2
plan9port-32f69c36e0eec1227934bbd34854bfebd88686f2.zip
Add support for user-level 9P servers/clients and various bug fixes to go with them.
Diffstat (limited to 'plumb')
-rw-r--r--plumb/basic26
1 files changed, 12 insertions, 14 deletions
diff --git a/plumb/basic b/plumb/basic
index a065799e..918cc51b 100644
--- a/plumb/basic
+++ b/plumb/basic
@@ -38,7 +38,8 @@ data matches '[a-zA-Z¡-￿0-9_\-./]+'
data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|bit)'
arg isfile $0
plumb to image
-plumb client page -wi
+plumb start qiv -t $1
+# plumb client page -wi
# postscript/pdf/dvi go to page but not over the a plumb port
# the port is here for reference but is unused
@@ -47,7 +48,8 @@ data matches '[a-zA-Z¡-￿0-9_\-./]+'
data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)'
arg isfile $0
plumb to postscript
-plumb start page -w $file
+plumb start gv $file
+# plumb start page -w $file
# existing files, possibly tagged by line number, go to editor
type is text
@@ -56,8 +58,7 @@ arg isfile $1
data set $file
attr add addr=$3
plumb to edit
-plumb start /usr/local/plan9/bin/B $file:$3
-# plumb client window $editor
+plumb client $editor
# .h files are looked up in /usr/include and passed to edit
type is text
@@ -66,8 +67,7 @@ arg isfile /usr/include/$1
data set $file
attr add addr=$3
plumb to edit
-plumb start /usr/local/plan9/bin/B $file:$3
-# plumb client window $editor
+plumb client $editor
# .h files are looked up in /usr/local/include and passed to edit
type is text
@@ -76,8 +76,7 @@ arg isfile /usr/local/include/$1
data set $file
attr add addr=$3
plumb to edit
-plumb start /usr/local/plan9/bin/B $file:$3
-# plumb client window $editor
+plumb client $editor
# .h files are looked up in /usr/local/plan9/include and passed to edit
type is text
@@ -86,8 +85,7 @@ arg isfile /usr/local/plan9/include/$1
data set $file
attr add addr=$3
plumb to edit
-plumb start /usr/local/plan9/bin/B $file:$3
-# plumb client window $editor
+plumb client $editor
# .m files are looked up in /sys/module and passed to edit
type is text
@@ -96,8 +94,7 @@ arg isfile /sys/module/$1
data set $file
attr add addr=$3
plumb to edit
-plumb start /usr/local/plan9/bin/B $file:$3
-# plumb client window $editor
+plumb client window $editor
# faces -> new mail window for message
type is text
@@ -113,13 +110,14 @@ plumb start rc -c 'man '$2' '$1' >[2=1] | plumb -i -d edit -a ''action=showdata
# start rule for images without known suffixes
dst is image
+arg isfile $data
plumb to image
-plumb client page -wi
+plumb start qiv -t $data
# start rule for postscript without known suffixes
dst is postscript
arg isfile $data
-plumb start page -w $data
+plumb start gv $data
type is text
data matches 'Local (.*)'