From: Jo-Philipp Wich Date: Thu, 29 Jan 2015 22:05:31 +0000 (+0000) Subject: scripts: avoid outputting empty lines in gen-dependencies.sh X-Git-Tag: reboot~4489 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a06f81cc3bb14f97c451bb06aac23778c1874ce4;p=openwrt%2Fstaging%2Fblogic.git scripts: avoid outputting empty lines in gen-dependencies.sh Signed-off-by: Jo-Philipp Wich SVN-Revision: 44208 --- diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index 567fe151a03f..c6b6f75f55dc 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