projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db7f80c
)
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
Jo-Philipp Wich
<jo@mein.io>
Wed, 1 Mar 2017 19:37:36 +0000
(20:37 +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