diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2009-11-26 21:52:59 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2009-11-26 21:52:59 +0000 |
commit | 82933104a1207a06f991ca974e580137738e5ffd (patch) | |
tree | dcef861cb7044d07e8fb624316e45c626a139f8a | |
parent | 7555dccf2174ef228f41e506904cf70a4c9c6314 (diff) | |
download | rpm-setup-82933104a1207a06f991ca974e580137738e5ffd.tar rpm-setup-82933104a1207a06f991ca974e580137738e5ffd.tar.gz rpm-setup-82933104a1207a06f991ca974e580137738e5ffd.tar.bz2 rpm-setup-82933104a1207a06f991ca974e580137738e5ffd.tar.xz rpm-setup-82933104a1207a06f991ca974e580137738e5ffd.zip |
support ELF executables only as a.out has been deprecated since ages ago (fixes
objdump 'File format not recognized' errors)
-rwxr-xr-x | find-requires.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 | \ |