diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-19 15:28:01 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-19 16:56:18 +0100 |
commit | 663f2a0864b0ca7e65575fc75479e37712a80114 (patch) | |
tree | f360cce6dde53596f09352d52c2fd5d7e3c10da7 /scripts | |
parent | b9b681c0675067dece47f9067779526b55bcf058 (diff) | |
download | upstream-663f2a0864b0ca7e65575fc75479e37712a80114.tar.gz upstream-663f2a0864b0ca7e65575fc75479e37712a80114.tar.bz2 upstream-663f2a0864b0ca7e65575fc75479e37712a80114.zip |
gen-dependencies.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/gen-dependencies.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index c6b6f75f55..0aa01b78ec 100755 --- a/scripts/gen-dependencies.sh +++ b/scripts/gen-dependencies.sh @@ -19,7 +19,7 @@ XARGS="${XARGS:-xargs -r}" } find $TARGETS -type f -a -exec file {} \; | \ - sed -n -e 's/^\(.*\):.*ELF.*\(executable\|shared object\).*,.* stripped/\1/p' | \ + sed -n -e 's/^\(.*\):.*ELF.*\(executable\|shared object\).*,.*/\1/p' | \ $XARGS -n1 $READELF -d | \ awk '$2 ~ /NEEDED/ && $NF !~ /interpreter/ && $NF ~ /^\[?lib.*\.so/ { gsub(/[\[\]]/, "", $NF); print $NF }' | \ sort -u |