From edd6929adcc2c4507ba7aedf96583e3d37da3134 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 21 Nov 1996 21:58:50 +0000 Subject: [PATCH] Initial revision CVS patchset: 1180 CVS date: 1996/11/21 21:58:50 --- autodeps/linux.req | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 autodeps/linux.req diff --git a/autodeps/linux.req b/autodeps/linux.req new file mode 100644 index 000000000..2b28a8655 --- /dev/null +++ b/autodeps/linux.req @@ -0,0 +1,9 @@ +#!/bin/bash + +# note this works for both a.out and ELF executables + +filelist=$(xargs file -L 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