#!/bin/rc # plumb formatted man pages to editor # data matches (.+)\(([0-9])\) # arg isfile /sys/man/$2/$1 # plumb start manplumber $2 $1 rfork en if(! mkdir -p /shr/man/$1 >[2]/dev/null){ ramfs -S manplumber mkdir '#σc'/man echo 3 > '#σc'/man/manplumber <>[3]/srv/manplumber mkdir -p /shr/man/$1 || exit $status } man $1 $2 > /shr/man/$1/$2 plumb -d edit /shr/man/$1/$2