From 108659afe2e0b0d82205f2485b2dce90a50dab8c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 29 Jan 2015 22:05:31 +0000 Subject: scripts: avoid outputting empty lines in gen-dependencies.sh Signed-off-by: Jo-Philipp Wich git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44208 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/gen-dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index 567fe151a0..c6b6f75f55 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 -- cgit v1.2.3