aboutsummaryrefslogtreecommitdiffstats
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
parentc3787d4c0c1d6707d06181628794367395f536e7 (diff)
downloadupstream-a06f81cc3bb14f97c451bb06aac23778c1874ce4.tar.gz
upstream-a06f81cc3bb14f97c451bb06aac23778c1874ce4.tar.bz2
upstream-a06f81cc3bb14f97c451bb06aac23778c1874ce4.zip
scripts: avoid outputting empty lines in gen-dependencies.sh
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44208
-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 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