file reorg, pathnames.h, paths.h
[unix-history] / usr / src / usr.bin / struct / struct / struct.sh
CommitLineData
9d4bf2a3 1#! /bin/sh
83394b8b 2#
dc0e9d50 3# @(#)struct.sh 4.3 (Berkeley) 89/05/10
83394b8b
RH
4#
5trap "rm -f /tmp/struct*$$" 0 1 2 3 13 15
6files=no
7for i
8do
9 case $i in
10 -*) ;;
11 *) files=yes
12 esac
13done
14
15case $files in
16yes)
dc0e9d50 17 /usr/libexec/structure $* >/tmp/struct$$
83394b8b
RH
18 ;;
19no)
20 cat >/tmp/structin$$
dc0e9d50 21 /usr/libexec/structure /tmp/structin$$ $* >/tmp/struct$$
83394b8b 22esac &&
dc0e9d50 23 /usr/libexec/beautify</tmp/struct$$