scripts: avoid outputting empty lines in gen-dependencies.sh
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44208 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
a22f276947
commit
108659afe2
|
@ -28,6 +28,6 @@ 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/gp; q }'
|
sed -ne '/^depends=.\+/ { s/^depends=//; s/,/.ko\n/g; s/$/.ko/p; q }'
|
||||||
done | sort -u
|
done | sort -u
|
||||||
rm -f $tmp
|
rm -f $tmp
|
||||||
|
|
Loading…
Reference in New Issue