scripts: avoid outputting empty lines in gen-dependencies.sh

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44208
master
Jo-Philipp Wich 10 years ago
parent c3787d4c0c
commit a06f81cc3b
  1. 2
      scripts/gen-dependencies.sh

@ -28,6 +28,6 @@ tmp=`mktemp $TMP_DIR/dep.XXXXXXXX`
for kmod in `find $TARGETS -type f -name \*.ko`; do
$OBJCOPY -O binary -j .modinfo $kmod $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
rm -f $tmp

Loading…
Cancel
Save