Annotation of researchv10dc/630/man/src/makeman, revision 1.1.1.1

1.1       root        1: #
                      2: # makeman - make and install individual manual pages specified as arguments
                      3: #
                      4: for i
                      5: do
                      6:        if test ! -r $i
                      7:        then
                      8:                echo cannot read $i
                      9:                exit 1
                     10:        fi
                     11:        tbl an $i |eqn| nroff -T37 >tmp
                     12:        if test `basename $i | wc -c` -le 12
                     13:        then
                     14:                pack tmp >/dev/null
                     15:        fi
                     16:        if test -f tmp.z
                     17:        then
                     18:                rm -f ../$i     # remove the old version if it wasn't packed
                     19:                cp tmp.z ../$i.z
                     20:                rm tmp.z
                     21:                echo "$i.z added to catman directory"
                     22:        else # error code - no savings from pack so file name
                     23:             # unchanged
                     24:                rm -f ../$i.z   # remove the old version if it was packed
                     25:                cp tmp ../$i
                     26:                rm tmp
                     27:                echo "$i added to catman directory"
                     28:        fi
                     29: done

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.