8917c373dca5744789a77121f5a12cc609434cb8
[unix-history] / usr / src / usr.bin / struct / struct / struct.sh
#! /bin/sh
#
# @(#)struct.sh 4.3 (Berkeley) 89/05/10
#
trap "rm -f /tmp/struct*$$" 0 1 2 3 13 15
files=no
for i
do
case $i in
-*) ;;
*) files=yes
esac
done
case $files in
yes)
/usr/libexec/structure $* >/tmp/struct$$
;;
no)
cat >/tmp/structin$$
/usr/libexec/structure /tmp/structin$$ $* >/tmp/struct$$
esac &&
/usr/libexec/beautify</tmp/struct$$