home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Games / fortune / Source / Do_troff < prev    next >
Encoding:
Text File  |  1989-09-05  |  1.1 KB  |  28 lines

  1. #!/bin/csh -f
  2. #
  3. # Copyright (c) 1989 The Regents of the University of California.
  4. # All rights reserved.
  5. #
  6. # This code is derived from software contributed to Berkeley by
  7. # Ken Arnold.
  8. #
  9. # Redistribution and use in source and binary forms are permitted
  10. # provided that the above copyright notice and this paragraph are
  11. # duplicated in all such forms and that any documentation,
  12. # advertising materials, and other materials related to such
  13. # distribution and use acknowledge that the software was developed
  14. # by the University of California, Berkeley.  The name of the
  15. # University may not be used to endorse or promote products derived
  16. # from this software without specific prior written permission.
  17. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  18. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  19. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  20. #
  21. #    @(#)Do_troff    5.3 (Berkeley) 9/5/89
  22. #
  23. set file=$1
  24. shift
  25. ( echo ".ds Se $file" ; cat Troff.mac ; sed -f Troff.sed $file ) | \
  26.     $* -me >& $file.tr
  27. echo troff output in $file.tr
  28.