home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J / os42j.iso / usr / bin / struct < prev    next >
Text File  |  1987-06-02  |  362b  |  24 lines

  1. #! /bin/sh
  2. #
  3. #    @(#)struct    4.2    (Berkeley)    83/12/19
  4. #
  5. trap "rm -f /tmp/struct*$$" 0 1 2 3 13 15
  6. files=no
  7. for i
  8. do
  9.     case $i in
  10.     -*)    ;;
  11.     *)    files=yes
  12.     esac
  13. done
  14.  
  15. case $files in
  16. yes)
  17.     /usr/lib/struct/structure $* >/tmp/struct$$
  18.     ;;
  19. no)
  20.     cat >/tmp/structin$$
  21.     /usr/lib/struct/structure /tmp/structin$$ $* >/tmp/struct$$
  22. esac &&
  23.     /usr/lib/struct/beautify</tmp/struct$$
  24.