From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Tue, 11 Jun 2013 14:38:03 +0200 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e011838900ddfd604dee02b5e Subject: [9fans] plumb rule for include files in different directories Topicbox-Message-UUID: 64a99b3e-ead8-11e9-9d60-3106f5b1d025 --089e011838900ddfd604dee02b5e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable i work on a project and i'd like to be able to plumb #includes right source files are in $path-to-project/source/$subsystem/src/ includes are in either $path-to-project/source/$subsystem/intf/ or $path-to-project/intf/$subsystem/intf/ it's quite chaothic i'm trying (at the end of rules) with something like type is text wdir matches '(/path-to-project/.*)/src/.*' arg isdir $1 data matches '([a-zA-Z=C3=82=C2=A1-=C3=AF=C2=BF=C2=BF0-9]+\.h)('$addr')?' arg isfile $dir/intf/$1 data set $file attr add addr=3D$3 plumb to edit plumb client window $editor but it doesn't seem to work Does anyone experimented with this (and managed to solve it)? --089e011838900ddfd604dee02b5e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
i work on a project and i'd like to be able to plumb #= includes right

source files are in $path-to-projec= t/source/$subsystem/src/
includes are in either=C2=A0$path-= to-project/source/$subsystem/intf/
or=C2=A0$path-to-project/intf/$subsystem/intf/
<= br>
it's quite chaothic

i'm trying (at the end of rules) with something like

type <= /span>is text
w= dir matches '(/path-to-project/.*)/src/.*'=
arg isdir $1
data matches '([a-zA-Z=C3=82=C2=A1-=C3=AF=C2=BF=C2=BF0-9]+\.h)('= $addr')?'
arg isfile $dir/intf/$1
data set $file
attr add addr=3D$3
plumb to edit
plumb client window $editor

but it doesn't seem to work

Does anyone experimented with this (and managed to solve it)?

--089e011838900ddfd604dee02b5e--