summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-11-21 22:16:00 +0000
committerewt <devnull@localhost>1996-11-21 22:16:00 +0000
commit774c0df66a42f7e4fa85167f9aeee503d788dca2 (patch)
tree7a7383b1de72ce288f4397838c30e967fe4ee54d /autodeps
parent796032899f5ff50563ff8f44fbd7f94542b61a62 (diff)
downloadrpm-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.req7
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
+