home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / netpbma.zip / mantocat < prev    next >
Text File  |  1993-10-04  |  301b  |  18 lines

  1. #!/bin/sh
  2. #
  3. # Shell script which reads the man pages in nroff format, calls nroff, and produces cat files.
  4. #
  5. # Syntax: mancp source dest
  6. #
  7. # Example: mancp pgm.5 /usr/local/man/cat5/pgm.0
  8. #
  9. # Oliver Trepte, 93-07-05
  10. #
  11. #
  12.  
  13. TMP=/tmp/mancp$$
  14. nroff -man $1 > $TMP
  15. cp $TMP $2
  16. rm -f $TMP
  17. echo "Done with $2"
  18.