summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-11-21 22:05:26 +0000
committerewt <devnull@localhost>1996-11-21 22:05:26 +0000
commit61b3ba144f3a9cc1f36c11600140724a4a029e90 (patch)
tree679b1a1e6539107c61e9f130c6c0a0908c3c3942 /autodeps
parentae565589c53c9b2f6882b6433e0ac6eb707a619e (diff)
downloadlibrpm-tizen-61b3ba144f3a9cc1f36c11600140724a4a029e90.tar.gz
librpm-tizen-61b3ba144f3a9cc1f36c11600140724a4a029e90.tar.bz2
librpm-tizen-61b3ba144f3a9cc1f36c11600140724a4a029e90.zip
1) look for => instead of ! "statically linked"
2) don't follow symlinks 3) use basename on lib names CVS patchset: 1182 CVS date: 1996/11/21 22:05:26
Diffstat (limited to 'autodeps')
-rw-r--r--autodeps/linux.req6
1 files changed, 3 insertions, 3 deletions
diff --git a/autodeps/linux.req b/autodeps/linux.req
index 2b28a8655..3566c7b45 100644
--- a/autodeps/linux.req
+++ b/autodeps/linux.req
@@ -2,8 +2,8 @@
# note this works for both a.out and ELF executables
-filelist=$(xargs file -L 2>/dev/null | grep "executable" | cut -d: -f1)
+filelist=$(xargs file 2>/dev/null | grep "executable" | cut -d: -f1)
for f in $filelist; do
- ldd $f | grep -v 'statically linked' | awk '{ print $1 }'
-done | sort -u
+ ldd $f | grep '=>' | awk '{ print $1 }'
+done | sort -u | xargs -r -n 1 basename | sort -u