home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / tile.lzh / tile.1 / bin / mkdoc < prev    next >
Encoding:
Text File  |  1990-07-26  |  675 b   |  32 lines

  1. #! /bin/sh
  2. # NAME
  3. #    mkdoc - create documenation file from manual pages
  4. # SYNOPSIS
  5. #    mkdoc <files>
  6. # DESCRIPTION
  7. #    Creates documentation (text) files from manual pages.
  8. #       The documentation files are used by help function mode
  9. #       in GNU Emacs (for the tile forth environment).
  10. # OPTIONS
  11. #    none
  12. # SEE ALSO
  13. #    nroff(1), tr(1).
  14. # AUTHOR
  15. #    Mikael R.K. Patel
  16. #    Computer Aided Design Laboratory (CADLAB)
  17. #    Department of Computer and Information Science
  18. #    Linkoping University
  19. #    S-581 83 LINKOPING
  20. #    SWEDEN
  21. #    Email: mip@ida.liu.se
  22. # HISTORY
  23. #     Created on:     20 June 1990
  24. #    Lasted updated:    20 June 1990
  25.  
  26. for file in $1
  27. do    
  28.     nroff -man $file | tr -d "_\010" > $file.doc
  29. done
  30.  
  31.  
  32.