Commit | Line | Data |
---|---|---|
9d4bf2a3 | 1 | #! /bin/sh |
83394b8b | 2 | # |
dc0e9d50 | 3 | # @(#)struct.sh 4.3 (Berkeley) 89/05/10 |
83394b8b RH |
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) | |
dc0e9d50 | 17 | /usr/libexec/structure $* >/tmp/struct$$ |
83394b8b RH |
18 | ;; |
19 | no) | |
20 | cat >/tmp/structin$$ | |
dc0e9d50 | 21 | /usr/libexec/structure /tmp/structin$$ $* >/tmp/struct$$ |
83394b8b | 22 | esac && |
dc0e9d50 | 23 | /usr/libexec/beautify</tmp/struct$$ |