date and time created 83/02/11 15:45:15 by rrh
authorRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Sat, 12 Feb 1983 07:45:15 +0000 (23:45 -0800)
committerRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Sat, 12 Feb 1983 07:45:15 +0000 (23:45 -0800)
SCCS-vsn: usr.bin/struct/struct/struct.sh 4.1

usr/src/usr.bin/struct/struct/struct.sh [new file with mode: 0644]

diff --git a/usr/src/usr.bin/struct/struct/struct.sh b/usr/src/usr.bin/struct/struct/struct.sh
new file mode 100644 (file)
index 0000000..f71dc34
--- /dev/null
@@ -0,0 +1,22 @@
+#
+#      @(#)struct.sh   4.1     (Berkeley)      83/02/11
+#
+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/lib/struct/structure $* >/tmp/struct$$
+       ;;
+no)
+       cat >/tmp/structin$$
+       /usr/lib/struct/structure /tmp/structin$$ $* >/tmp/struct$$
+esac &&
+       /usr/lib/struct/beautify</tmp/struct$$