projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bececcc
)
rstrip.sh: fix handling variations in "file" output
author
Felix Fietkau
<nbd@nbd.name>
Sun, 19 Feb 2017 13:02:38 +0000
(14:02 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Sun, 19 Feb 2017 15:56:17 +0000
(16:56 +0100)
On some systems, file adds ", with debug info" after "not stripped"
Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/rstrip.sh
patch
|
blob
|
history
diff --git
a/scripts/rstrip.sh
b/scripts/rstrip.sh
index 4e4232db60d6b67689c70ca36568d7790b006714..55caefc1a8cf463edb73b58d6de1e4ae376e14a7 100755
(executable)
--- 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