Skip to content
Snippets Groups Projects
Commit b9b681c0 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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


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

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent bececcce
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ TARGETS=$* ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment