- for x in 1 2 3 4 5 6 7 8
- do
- < man0/tocx$x grep '^intro' >$tmp
- sed \
- -e '2,${' \
- -e '/^intro/d' \
- -e '}' \
- -e 's/ .*://' \
- -e 's/.$//' \
- -e 's/([^)]*) /" "/' \
- -e 's/.*/.xx "&"/' \
- -e '/""/d' \
- $tmp man0/tocx$x \
- >man0/toc$x
- done
- ;;
- tr )
- cd man0; $troff ptx.in ; cd ..
- cd man0 ; $troff toc.in ; cd ..
- ;;
- * )
- ./$0 $1 $1
- ;;
- esac
-fi