diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-19 14:02:38 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-03-01 20:37:36 +0100 |
commit | 2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207 (patch) | |
tree | 832d456be5b16001e51ef6b812d16d85d8c06ac7 /scripts | |
parent | db7f80c587fd98ffda12c4ed488cf702945d7342 (diff) | |
download | mtk-20170518-2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207.zip mtk-20170518-2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207.tar.gz mtk-20170518-2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207.tar.bz2 |
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')
-rwxr-xr-x | scripts/rstrip.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 4e4232d..55caefc 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 |