| tB that knows about address syntax, change plumber to use it. - plan9port - [fo… | |
| git clone git://src.adamsgaard.dk/plan9port | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit e89321a56e6d3c1559e166898510d6ddab9e6ffe | |
| parent 1ccf253eb2479d536f690f1805a7719a7cfe96dc | |
| Author: rsc <devnull@localhost> | |
| Date: Tue, 2 Dec 2003 21:57:32 +0000 | |
| B that knows about address syntax, | |
| change plumber to use it. | |
| Diffstat: | |
| M bin/B | 6 ++++++ | |
| M plumb/basic | 6 +++--- | |
| 2 files changed, 9 insertions(+), 3 deletions(-) | |
| --- | |
| diff --git a/bin/B b/bin/B | |
| t@@ -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 | |
| diff --git a/plumb/basic b/plumb/basic | |
| t@@ -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 | |
| t@@ -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 | |
| t@@ -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 |