aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rstrip.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-19 14:02:38 +0100
committerJo-Philipp Wich <jo@mein.io>2017-03-01 20:37:36 +0100
commit2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207 (patch)
tree832d456be5b16001e51ef6b812d16d85d8c06ac7 /scripts/rstrip.sh
parentdb7f80c587fd98ffda12c4ed488cf702945d7342 (diff)
downloadupstream-2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207.tar.gz
upstream-2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207.tar.bz2
upstream-2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207.zip
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>
Diffstat (limited to 'scripts/rstrip.sh')
-rwxr-xr-xscripts/rstrip.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh
index 4e4232db60..55caefc1a8 100755
--- a/scripts/rstrip.sh
+++ b/scripts/rstrip.sh
@@ -21,7 +21,7 @@ TARGETS=$*
}
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=":"
while read F S; do