summaryrefslogtreecommitdiff
path: root/scripts/gen-dependencies.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-29 22:05:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-01-29 22:05:31 +0000
commita06f81cc3bb14f97c451bb06aac23778c1874ce4 (patch)
tree0be2146771c40cb4387208b90e3e1ebfc773c317 /scripts/gen-dependencies.sh
parentc3787d4c0c1d6707d06181628794367395f536e7 (diff)
downloadmtk-20170518-a06f81cc3bb14f97c451bb06aac23778c1874ce4.zip
mtk-20170518-a06f81cc3bb14f97c451bb06aac23778c1874ce4.tar.gz
mtk-20170518-a06f81cc3bb14f97c451bb06aac23778c1874ce4.tar.bz2
scripts: avoid outputting empty lines in gen-dependencies.sh
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44208
Diffstat (limited to 'scripts/gen-dependencies.sh')
-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 567fe15..c6b6f75 100755
--- a/scripts/gen-dependencies.sh
+++ b/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