diff options
author | ewt <devnull@localhost> | 1996-11-21 22:16:00 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-11-21 22:16:00 +0000 |
commit | 774c0df66a42f7e4fa85167f9aeee503d788dca2 (patch) | |
tree | 7a7383b1de72ce288f4397838c30e967fe4ee54d /autodeps | |
parent | 796032899f5ff50563ff8f44fbd7f94542b61a62 (diff) | |
download | rpm-774c0df66a42f7e4fa85167f9aeee503d788dca2.tar.gz rpm-774c0df66a42f7e4fa85167f9aeee503d788dca2.tar.bz2 rpm-774c0df66a42f7e4fa85167f9aeee503d788dca2.zip |
removed extra grep
CVS patchset: 1184
CVS date: 1996/11/21 22:16:00
Diffstat (limited to 'autodeps')
-rw-r--r-- | autodeps/linux.req | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/autodeps/linux.req b/autodeps/linux.req index 4483ca685..3f8c209db 100644 --- a/autodeps/linux.req +++ b/autodeps/linux.req @@ -1,11 +1,12 @@ -#!/bin/bash +#!/bin/sh # note this works for both a.out and ELF executables ulimit -c 0 -filelist=$(xargs file 2>/dev/null | grep "executable" | cut -d: -f1) +filelist=`xargs -r file | fgrep executable | cut -d: -f1 ` for f in $filelist; do - ldd $f | grep '=>' | awk '{ print $1 }' + ldd $f | awk '/=>/ { print $1 }' done | sort -u | xargs -r -n 1 basename | sort -u + |