mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
scripts/gen-dependencies.sh: replace backticks with $()
Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
9f7d36d1a9
commit
dec46a9ea0
@ -24,8 +24,8 @@ find $TARGETS -type f -a -exec file {} \; | \
|
|||||||
awk '$2 ~ /NEEDED/ && $NF !~ /interpreter/ && $NF ~ /^\[?lib.*\.so/ { gsub(/[\[\]]/, "", $NF); print $NF }' | \
|
awk '$2 ~ /NEEDED/ && $NF !~ /interpreter/ && $NF ~ /^\[?lib.*\.so/ { gsub(/[\[\]]/, "", $NF); print $NF }' | \
|
||||||
sort -u
|
sort -u
|
||||||
|
|
||||||
tmp=`mktemp $TMP_DIR/dep.XXXXXXXX`
|
tmp=$(mktemp $TMP_DIR/dep.XXXXXXXX)
|
||||||
for kmod in `find $TARGETS -type f -name \*.ko`; do
|
for kmod in $(find $TARGETS -type f -name \*.ko); do
|
||||||
$OBJCOPY -O binary -j .modinfo $kmod $tmp
|
$OBJCOPY -O binary -j .modinfo $kmod $tmp
|
||||||
sed -e 's,\x00,\n,g' $tmp | \
|
sed -e 's,\x00,\n,g' $tmp | \
|
||||||
sed -ne '/^depends=.\+/ { s/^depends=//; s/,/.ko\n/g; s/$/.ko/p; q }'
|
sed -ne '/^depends=.\+/ { s/^depends=//; s/,/.ko\n/g; s/$/.ko/p; q }'
|
||||||
|
Loading…
Reference in New Issue
Block a user