Blame


1 e70f3050 2003-11-23 devnull # these are generally in order from most specific to least,
2 e70f3050 2003-11-23 devnull # since first rule that fires wins.
3 e70f3050 2003-11-23 devnull
4 e70f3050 2003-11-23 devnull include fileaddr
5 e70f3050 2003-11-23 devnull
6 e70f3050 2003-11-23 devnull # declarations of ports without rules
7 e70f3050 2003-11-23 devnull plumb to seemail
8 e70f3050 2003-11-23 devnull plumb to showmail
9 e70f3050 2003-11-23 devnull
10 dee84543 2004-08-11 devnull # relative files as file: urls get made into absolute paths
11 dee84543 2004-08-11 devnull type is text
12 dee84543 2004-08-11 devnull data matches 'file:([.a-zA-Z¡-￿0-9_\-]([.a-zA-Z¡-￿0-9_/\-]*[a-zA-Z¡-￿0-9_/\-]))?'
13 dee84543 2004-08-11 devnull arg isfile $1
14 dee84543 2004-08-11 devnull data set file://$file
15 dee84543 2004-08-11 devnull plumb to web
16 dee84543 2004-08-11 devnull plumb start web $data
17 dee84543 2004-08-11 devnull
18 3040f289 2004-06-09 devnull # urls go to web browser
19 e70f3050 2003-11-23 devnull type is text
20 41deef57 2007-04-03 devnull data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*'
21 dee84543 2004-08-11 devnull plumb to web
22 3040f289 2004-06-09 devnull plumb start web $0
23 e70f3050 2003-11-23 devnull
24 e70f3050 2003-11-23 devnull # doc and rtf files go to wdoc2txt
25 e70f3050 2003-11-23 devnull type is text
26 e70f3050 2003-11-23 devnull data matches '[a-zA-Z¡-￿0-9_\-./]+'
27 e70f3050 2003-11-23 devnull data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(doc|rtf)'
28 e70f3050 2003-11-23 devnull arg isfile $0
29 e70f3050 2003-11-23 devnull plumb to msword
30 e70f3050 2003-11-23 devnull plumb start wdoc2txt $file
31 e70f3050 2003-11-23 devnull
32 e70f3050 2003-11-23 devnull # start rule for microsoft word documents without .doc suffix
33 e70f3050 2003-11-23 devnull type is text
34 e70f3050 2003-11-23 devnull dst is msword
35 e70f3050 2003-11-23 devnull plumb to msword
36 e70f3050 2003-11-23 devnull plumb start wdoc2txt $file
37 e70f3050 2003-11-23 devnull
38 e70f3050 2003-11-23 devnull # image files go to page
39 e70f3050 2003-11-23 devnull type is text
40 e70f3050 2003-11-23 devnull data matches '[a-zA-Z¡-￿0-9_\-./]+'
41 661756d7 2004-04-21 devnull data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|bit|png|PNG)'
42 e70f3050 2003-11-23 devnull arg isfile $0
43 e70f3050 2003-11-23 devnull plumb to image
44 8b0728d3 2006-06-06 devnull plumb start 9 page $file
45 e70f3050 2003-11-23 devnull
46 e70f3050 2003-11-23 devnull # postscript/pdf/dvi go to page but not over the a plumb port
47 e70f3050 2003-11-23 devnull # the port is here for reference but is unused
48 e70f3050 2003-11-23 devnull type is text
49 e70f3050 2003-11-23 devnull data matches '[a-zA-Z¡-￿0-9_\-./]+'
50 e70f3050 2003-11-23 devnull data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)'
51 e70f3050 2003-11-23 devnull arg isfile $0
52 e70f3050 2003-11-23 devnull plumb to postscript
53 8b0728d3 2006-06-06 devnull plumb start 9 page $file
54 e70f3050 2003-11-23 devnull
55 dee84543 2004-08-11 devnull # open office - s[xt][cdigmw], doc, xls, ppt
56 dee84543 2004-08-11 devnull data matches '[a-zA-Z¡-￿0-9_\-./]+'
57 dee84543 2004-08-11 devnull data matches '([a-zA-Z¡-￿0-9_\-./]+)\.([Ss][XxTt][CcDdIiGgMmWw]|[Dd][Oo][Cc]|[Xx][Ll][Ss]|[Pp][Pp][Tt])'
58 dee84543 2004-08-11 devnull arg isfile $0
59 dee84543 2004-08-11 devnull plumb to openoffice
60 dee84543 2004-08-11 devnull plumb start openoffice $file
61 dee84543 2004-08-11 devnull
62 c84e737c 2010-10-28 rsc # existing files tagged by line number:columnumber or linenumber.columnumber, go to editor
63 c84e737c 2010-10-28 rsc type is text
64 c84e737c 2010-10-28 rsc data matches '([.a-zA-Z¡-￿0-9_/\-]*[a-zA-Z¡-￿0-9_/\-])'$twocolonaddr'
65 c84e737c 2010-10-28 rsc arg isfile $1
66 c84e737c 2010-10-28 rsc data set $file
67 f0a4e8bd 2011-08-31 rsc attr add addr=$2-#1+#$3
68 c84e737c 2010-10-28 rsc plumb to edit
69 c84e737c 2010-10-28 rsc plumb client $editor
70 c84e737c 2010-10-28 rsc
71 e70f3050 2003-11-23 devnull # existing files, possibly tagged by line number, go to editor
72 e70f3050 2003-11-23 devnull type is text
73 e70f3050 2003-11-23 devnull data matches '([.a-zA-Z¡-￿0-9_/\-]*[a-zA-Z¡-￿0-9_/\-])('$addr')?'
74 e70f3050 2003-11-23 devnull arg isfile $1
75 e70f3050 2003-11-23 devnull data set $file
76 e70f3050 2003-11-23 devnull attr add addr=$3
77 e70f3050 2003-11-23 devnull plumb to edit
78 32f69c36 2003-12-11 devnull plumb client $editor
79 e70f3050 2003-11-23 devnull
80 ccee548f 2003-12-04 devnull # .h files are looked up in /usr/include and passed to edit
81 e70f3050 2003-11-23 devnull type is text
82 e50b313e 2006-07-05 devnull data matches '([a-zA-Z¡-￿0-9/_\-]+\.h)('$addr')?'
83 ccee548f 2003-12-04 devnull arg isfile /usr/include/$1
84 e70f3050 2003-11-23 devnull data set $file
85 e70f3050 2003-11-23 devnull attr add addr=$3
86 e70f3050 2003-11-23 devnull plumb to edit
87 32f69c36 2003-12-11 devnull plumb client $editor
88 e70f3050 2003-11-23 devnull
89 ccee548f 2003-12-04 devnull # .h files are looked up in /usr/local/include and passed to edit
90 ccee548f 2003-12-04 devnull type is text
91 e50b313e 2006-07-05 devnull data matches '([a-zA-Z¡-￿0-9/_\-]+\.h)('$addr')?'
92 ccee548f 2003-12-04 devnull arg isfile /usr/local/include/$1
93 ccee548f 2003-12-04 devnull data set $file
94 ccee548f 2003-12-04 devnull attr add addr=$3
95 ccee548f 2003-12-04 devnull plumb to edit
96 32f69c36 2003-12-11 devnull plumb client $editor
97 ccee548f 2003-12-04 devnull
98 4de03b54 2005-01-11 devnull # .h files are looked up in $plan9/include and passed to edit
99 ccee548f 2003-12-04 devnull type is text
100 e50b313e 2006-07-05 devnull data matches '([a-zA-Z¡-￿0-9/_\-]+\.h)('$addr')?'
101 4de03b54 2005-01-11 devnull arg isfile $plan9/include/$1
102 ccee548f 2003-12-04 devnull data set $file
103 ccee548f 2003-12-04 devnull attr add addr=$3
104 ccee548f 2003-12-04 devnull plumb to edit
105 32f69c36 2003-12-11 devnull plumb client $editor
106 ccee548f 2003-12-04 devnull
107 9a0e0048 2009-05-17 rsc # .m files are looked up in /usr/inferno/module and passed to edit
108 e70f3050 2003-11-23 devnull type is text
109 e50b313e 2006-07-05 devnull data matches '([a-zA-Z¡-￿0-9/_\-]+\.m)('$addr')?'
110 9a0e0048 2009-05-17 rsc arg isfile /usr/inferno/module/$1
111 e70f3050 2003-11-23 devnull data set $file
112 e70f3050 2003-11-23 devnull attr add addr=$3
113 e70f3050 2003-11-23 devnull plumb to edit
114 32f69c36 2003-12-11 devnull plumb client window $editor
115 e70f3050 2003-11-23 devnull
116 e70f3050 2003-11-23 devnull # faces -> new mail window for message
117 e70f3050 2003-11-23 devnull type is text
118 e70f3050 2003-11-23 devnull data matches '[a-zA-Z¡-￿0-9_\-./]+'
119 e70f3050 2003-11-23 devnull data matches '/mail/fs/[a-zA-Z¡-￿0-9/]+/[0-9]+'
120 e70f3050 2003-11-23 devnull plumb to showmail
121 e70f3050 2003-11-23 devnull plumb start window -r 4 120 750 600 upas/nedmail -s $0
122 e70f3050 2003-11-23 devnull
123 64851eee 2008-04-17 rsc # email addresses get a new mail window
124 64851eee 2008-04-17 rsc type is text
125 64851eee 2008-04-17 rsc data matches '[a-zA-Z0-9_+.\-]+@[a-zA-Z0-9_+.\-]*'
126 64851eee 2008-04-17 rsc plumb to sendmail
127 64851eee 2008-04-17 rsc plumb start wmail $0
128 64851eee 2008-04-17 rsc # plumb start window rc -c '''echo % mail '''$0'; mail '$0
129 64851eee 2008-04-17 rsc
130 e70f3050 2003-11-23 devnull # man index entries are synthesized
131 e70f3050 2003-11-23 devnull type is text
132 e70f3050 2003-11-23 devnull data matches '([a-zA-Z¡-￿0-9_\-./]+)\(([1-8])\)'
133 6b53e2a4 2004-04-19 devnull plumb start rc -c 'man '$2' '$1' >[2=1] | nobs | plumb -i -d edit -a ''action=showdata filename=/man/'$1'('$2')'''
134 e70f3050 2003-11-23 devnull
135 e70f3050 2003-11-23 devnull # start rule for images without known suffixes
136 e70f3050 2003-11-23 devnull dst is image
137 32f69c36 2003-12-11 devnull arg isfile $data
138 e70f3050 2003-11-23 devnull plumb to image
139 8b0728d3 2006-06-06 devnull plumb start 9 page $data
140 e70f3050 2003-11-23 devnull
141 e70f3050 2003-11-23 devnull # start rule for postscript without known suffixes
142 e70f3050 2003-11-23 devnull dst is postscript
143 e70f3050 2003-11-23 devnull arg isfile $data
144 8b0728d3 2006-06-06 devnull plumb start 9 page $data