summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-08-05 11:44:52 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-08-05 11:44:52 +0200
commitf1f580731b7872684a4bef8930cd2f468e2dc69a (patch)
treeeceb4393227473c35757546f58eda32a8544b4cc
parent0e8dafcb3e1ddb7935c1c8c305e7e5598be30315 (diff)
downloadbuildroot-novena-f1f580731b7872684a4bef8930cd2f468e2dc69a.tar.gz
buildroot-novena-f1f580731b7872684a4bef8930cd2f468e2dc69a.zip
pkg-stats: support <pkg>_LICENSE = lines with spaces
For alignement reasons, we sometimes add spaces between <pkg>_LICENSE and the equal sign. Take this into account in pkg-stats. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rwxr-xr-xsupport/scripts/pkg-stats2
1 files changed, 1 insertions, 1 deletions
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