From f1f580731b7872684a4bef8930cd2f468e2dc69a Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 5 Aug 2012 11:44:52 +0200 Subject: pkg-stats: support _LICENSE = lines with spaces For alignement reasons, we sometimes add spaces between _LICENSE and the equal sign. Take this into account in pkg-stats. Signed-off-by: Thomas Petazzoni --- support/scripts/pkg-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support') diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index de73eeb27..a07af555e 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -155,7 +155,7 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do generic_packages=$(($generic_packages+1)) fi - if grep -qE "^${pkgvariable}_LICENSE =" $i ; then + if grep -qE "^${pkgvariable}_LICENSE[ ]*=" $i ; then packages_with_license=$(($packages_with_license+1)) license=1 else -- cgit v1.2.3