浏览代码

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

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

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 8 年之前
父节点
当前提交
b9b681c067
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/rstrip.sh

+ 1 - 1
scripts/rstrip.sh

@@ -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