diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-29 22:05:31 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-29 22:05:31 +0000 |
commit | a06f81cc3bb14f97c451bb06aac23778c1874ce4 (patch) | |
tree | 0be2146771c40cb4387208b90e3e1ebfc773c317 /scripts/gen-dependencies.sh | |
parent | c3787d4c0c1d6707d06181628794367395f536e7 (diff) | |
download | mtk-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-x | scripts/gen-dependencies.sh | 2 |
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 |