summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-19 15:28:01 +0100
committerJo-Philipp Wich <jo@mein.io>2017-03-01 20:37:36 +0100
commitfffabd3c44137f07f8c8959c1b16ad6944bc5110 (patch)
tree1720457ee7cea9363b5459a63050e731758872d5 /scripts
parent2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207 (diff)
downloadmtk-20170518-fffabd3c44137f07f8c8959c1b16ad6944bc5110.zip
mtk-20170518-fffabd3c44137f07f8c8959c1b16ad6944bc5110.tar.gz
mtk-20170518-fffabd3c44137f07f8c8959c1b16ad6944bc5110.tar.bz2
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-xscripts/gen-dependencies.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh
index c6b6f75..0aa01b7 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