ref: 7888f0d7ab5dbd4f0a92cef3730590a4c7b9bea8
dir: /bin/plumb.dir/
#!/bin/rc
rfork e
fn usage {
>[2=1] echo $0
exit usage
}
while(~ $1 -* && ! ~ $1 --){
switch($1){
case *
usage
}
shift
}
if(~ $1 --)
shift
t=/dev/wsys/`{cat $wsdir/target}^/text
echo cd $1 >/tmp/text
cat $t >>/tmp/text
cp /tmp/text $t