From 82933104a1207a06f991ca974e580137738e5ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Thu, 26 Nov 2009 21:52:59 +0000 Subject: support ELF executables only as a.out has been deprecated since ages ago (fixes objdump 'File format not recognized' errors) --- find-requires.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'find-requires.in') diff --git a/find-requires.in b/find-requires.in index 17ca82d..1fbe75f 100755 --- a/find-requires.in +++ b/find-requires.in @@ -1,7 +1,7 @@ #!/bin/bash # -# Auto-generate requirements for executables (both ELF and a.out) and library +# Auto-generate requirements for ELF executables and library # sonames, script interpreters, and perl modules. # @@ -39,7 +39,7 @@ fi #filelist=`sed "s/['\"]/\\\&/g"` filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` exelist=`echo "$filelist" | xargs -r file | egrep -v ":.* (commands|script) " | \ - grep ":.*executable" | cut -d: -f1` + grep ":.*ELF.*executable" | cut -d: -f1` scriptlist=`echo "$filelist" | grep -v /usr/doc | grep -v /usr/share/doc | xargs -r file | \ egrep ":.* (commands|script) " | cut -d: -f1` liblist=`echo "$filelist" | egrep -v "/usr/lib(64)?/gcj/" | xargs -r file | \ -- cgit v1.2.1