chdir /tmp/man/man1
set s = 1
: loop
if ! -r ../man$1 goto skip
set s = $1
chdir ../man$1
shift
: skip
if x$1 = x exit
if -r $1.$s goto normal
cat $1
goto done
: normal
nroff -mm $1.$s
: done
shift
if x$1 != x goto loop
