Allow for more text in file output

On Solaris 11 unstripped ELF binaries can have additional text in the output
from 'file' which we need to account for.
This commit is contained in:
Tom G. Christensen 2012-07-08 12:11:06 +02:00
parent 5b36aaacb7
commit 71104210b2

View File

@ -900,7 +900,7 @@ do_strip_bin()
echo "Stripping ELF binaries..." echo "Stripping ELF binaries..."
for f in `${__find} . -type f \( -perm -0100 -o -perm -0010 -o -perm -0001 \) -exec ${__file} {} \; | \ for f in `${__find} . -type f \( -perm -0100 -o -perm -0010 -o -perm -0001 \) -exec ${__file} {} \; | \
${__grep} -v ' dynamic lib ' | \ ${__grep} -v ' dynamic lib ' | \
${__sed} -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do ${__sed} -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p'`; do
${__strip} $strip_elf_args $f || : ${__strip} $strip_elf_args $f || :
done done
} }