[source] rstrip.sh: fix handling variations in "file" output

LEDE Commits lede-commits at lists.infradead.org
Wed Mar 1 11:38:04 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207

commit 2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Feb 19 14:02:38 2017 +0100

    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 at nbd.name>
---
 scripts/rstrip.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the lede-commits mailing list