mirror of
https://github.com/coolsnowwolf/lede
synced 2025-01-09 09:37:33 +08:00
14 lines
349 B
Bash
Executable File
14 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
|
|
TARGETS=$*
|
|
READELF="${READELF:-readelf}"
|
|
XARGS="${XARGS:-xargs -r}"
|
|
|
|
find $TARGETS -type f -a -exec file {} \; | \
|
|
sed -n -e 's/^\(.*\):.*ELF.*\(executable\|shared object\).*,.*/\1/p' | \
|
|
$XARGS -n1 $READELF -l | grep 'Requesting' | cut -d':' -f2 | tr -d ' ]' | \
|
|
$XARGS basename
|
|
|
|
cd `dirname ${0}`
|
|
./gen-dependencies.sh ${TARGETS}
|