aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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
commit108659afe2e0b0d82205f2485b2dce90a50dab8c (patch)
tree012ae3112d53787f2754e15ca0380cd283a72337 /scripts
parenta22f276947dafd847e81b20034a8a1b307e078a5 (diff)
downloadupstream-108659afe2e0b0d82205f2485b2dce90a50dab8c.tar.gz
upstream-108659afe2e0b0d82205f2485b2dce90a50dab8c.tar.bz2
upstream-108659afe2e0b0d82205f2485b2dce90a50dab8c.zip
scripts: avoid outputting empty lines in gen-dependencies.sh
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44208 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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