B that knows about address syntax,

change plumber to use it.
This commit is contained in:
rsc 2003-12-02 21:57:32 +00:00
parent 1ccf253eb2
commit e89321a56e
2 changed files with 9 additions and 3 deletions

6
bin/B
View file

@ -22,6 +22,12 @@ else
do
pwd=`pwd`
file=`cleanname -d $pwd $i`
line=`echo $file | sed 's/.*://'`
file=`echo $file | sed 's/:.*//'`
echo "B $file" >>$sam
if [ "x$line" != "x" -a "x$line" != "x$file" ]
then
echo "$line" >> $sam
fi
done
fi

View file

@ -56,7 +56,7 @@ arg isfile $1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
# .h files are looked up in /sys/include and passed to edit
@ -66,7 +66,7 @@ arg isfile /sys/include/$1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
# .m files are looked up in /sys/module and passed to edit
@ -76,7 +76,7 @@ arg isfile /sys/module/$1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
# faces -> new mail window for message