summaryrefslogtreecommitdiff
path: root/autodeps/osf.req
diff options
context:
space:
mode:
Diffstat (limited to 'autodeps/osf.req')
-rw-r--r--autodeps/osf.req34
1 files changed, 22 insertions, 12 deletions
diff --git a/autodeps/osf.req b/autodeps/osf.req
index 08fe13fa6..73abf5c75 100644
--- a/autodeps/osf.req
+++ b/autodeps/osf.req
@@ -1,7 +1,7 @@
#! /usr/bin/ksh
# Original Author: Tim Mooney (mooney@plains.nodak.edu)
-# $Id: osf.req,v 1.6 1999/09/07 19:53:10 jbj Exp $
+# $Id: osf.req,v 1.7 1999/09/30 00:22:15 jbj Exp $
#
# This file is distributed under the terms of the GNU Public License
#
@@ -60,21 +60,32 @@ do
cut -d: -f 2 | awk '{ print $1 }'`
#
- # it's a script
+ # If it's a script...
#
if test X"$is_shell_script" != X ; then
- echo $is_shell_script
-
- else
-
+ echo "$is_shell_script"
#
- # it might be a shared library.
+ # use `continue' to skip back up to the top of the loop.
+ # We have already done as much as we need to for this
+ # file, and this saves me from having to have an else,
+ # and another indent level... ;-)
#
+ continue
+ fi
+
+ #
+ # The `else' here is implied by the `continue' above...
+ #
+
+ #
+ # it might be a shared library.
+ #
- maybe_shared_lib=`echo "$file_output" | grep 'executable'`
- if test X"$maybe_shared_lib" != X ; then
+ maybe_shared_lib=`echo "$file_output" | grep 'executable'`
+ if test X"$maybe_shared_lib" != X ; then
- odump -Dl $f 2>/dev/null | awk '
+ odump -Dl $f 2>/dev/null \
+ | awk '
#
# For you non-awk-ers, no single quotes in comments -- the shell
@@ -136,8 +147,7 @@ do
#print "found the program name: ", $1
}
- ' # end of awk
- fi
+ ' # end of awk
fi
done | sort -u
# comment out the previous line and uncomment the next when debugging