rstrip.sh: fix handling variations in "file" output

On some systems, file adds ", with debug info" after "not stripped"

Signed-off-by: Felix Fietkau <nbd@nbd.name>
lede-17.01
Felix Fietkau 2017-02-19 14:02:38 +01:00 committed by Jo-Philipp Wich
parent db7f80c587
commit 2d5f8eb067
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ TARGETS=$*
} }
find $TARGETS -type f -a -exec file {} \; | \ find $TARGETS -type f -a -exec file {} \; | \
sed -n -e 's/^\(.*\):.*ELF.*\(executable\|relocatable\|shared object\).*,.* stripped/\1:\2/p' | \ sed -n -e 's/^\(.*\):.*ELF.*\(executable\|relocatable\|shared object\).*,.*/\1:\2/p' | \
( (
IFS=":" IFS=":"
while read F S; do while read F S; do