home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V7 / bin / struct < prev    next >
Encoding:
Text File  |  1979-01-10  |  310 b   |  20 lines

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