From 32f69c36e0eec1227934bbd34854bfebd88686f2 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 11 Dec 2003 17:48:38 +0000 Subject: Add support for user-level 9P servers/clients and various bug fixes to go with them. --- plumb/basic | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'plumb') 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¡- 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¡- 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 (.*)' -- cgit v1.2.3