scripts/gen-dependencies.sh: prevent zero-length dep.* files from accumulating in tmp/

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38860 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2013-11-19 00:03:34 +00:00
parent 4b3a01bb97
commit 227b3b2d61

View file

@ -31,5 +31,5 @@ for kmod in `find $TARGETS -type f -name \*.ko`; do
egrep -a '^depends=' | \ egrep -a '^depends=' | \
sed -e 's,^depends=,,' -e 's/,/\n/g' | \ sed -e 's,^depends=,,' -e 's/,/\n/g' | \
awk '{ print $1 ".ko" }' awk '{ print $1 ".ko" }'
rm -f $tmp
done | sort -u done | sort -u
rm -f $tmp