From beafd2073059499f612cf6e68b2228b87c0325c6 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 14 Mar 2010 17:52:32 +0100 Subject: pkg-stats: better heuristics Slightly improve the package type detection heuristic, and fix a small bug about package/multimedia/multimedia.mk exclusion. Signed-off-by: Thomas Petazzoni --- scripts/pkg-stats | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'scripts') diff --git a/scripts/pkg-stats b/scripts/pkg-stats index 0ed420d32..1174ef04c 100755 --- a/scripts/pkg-stats +++ b/scripts/pkg-stats @@ -70,7 +70,7 @@ for i in $(find package/ -name '*.mk') ; do $i = "package/database/database.mk" -o \ $i = "package/editors/editors.mk" -o \ $i = "package/games/games.mk" -o \ - $i = "package/multimedia/multimedia" -o \ + $i = "package/multimedia/multimedia.mk" -o \ $i = "package/customize/customize.mk" -o \ $i = "package/gnuconfig/gnuconfig.mk" -o \ $i = "package/x11r7/x11r7.mk" ; then @@ -144,7 +144,7 @@ for i in $(find package/ -name '*.mk') ; do echo "" echo "" - if grep "^$pkg:" $i > /dev/null ; then + if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 ; then found=1 is_manual_target=1 echo "YES" @@ -155,18 +155,17 @@ for i in $(find package/ -name '*.mk') ; do echo "" echo "