From patchwork Wed May 14 11:24:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 348750 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 4BBD9140094 for ; Wed, 14 May 2014 21:24:25 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B00C09FF40; Wed, 14 May 2014 11:24:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O4HQaACuYJXE; Wed, 14 May 2014 11:24:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 385369FD1A; Wed, 14 May 2014 11:24:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D9CD91C259A for ; Wed, 14 May 2014 11:24:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D5F8193DEA for ; Wed, 14 May 2014 11:24:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eg2Y-KUbvHhc for ; Wed, 14 May 2014 11:24:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by hemlock.osuosl.org (Postfix) with ESMTPS id 5AED693DE9 for ; Wed, 14 May 2014 11:24:20 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id fa1so1566950pad.39 for ; Wed, 14 May 2014 04:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=cYvREiXOq7rdfylRSWKp63AcL+g+gCXKnddzNkV+l74=; b=knBCL7TlyU67rblYV3cx6Q8Fnp3cxbSOuSMVdPK2r8HCBs5IwBv9ZInLwbhUtFOUBl z7ZvWJjutGZZZRnje/hewtQfVcPzBQA6Zu2i/DRXb5VidTQv/9LuNzoAhvey/PhEVCOU IlLmSGnT1FDqgJJoXM09RXHRkcEMz/NFajCU54O7z6rlD3IbhwBZcHo6IXeNU7CO/pF5 H85cND93pXwQV7frCa0smtQpgkJvVauiAvpgGjMuOqTIMid5Lt7e6AdJTGfP1l8mUEiS 8dhSq4zrP63p135txbZdLOSxmp4DAwJppze+w8OP/Jsj7F/ZX3Ddnf+tgNe73HGVmwj1 j+lw== X-Received: by 10.66.153.80 with SMTP id ve16mr3525861pab.143.1400066659910; Wed, 14 May 2014 04:24:19 -0700 (PDT) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id or4sm3028308pbb.17.2014.05.14.04.24.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 May 2014 04:24:18 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Wed, 14 May 2014 13:24:13 +0200 Message-Id: <1400066654-32196-1-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: Luca Ceresoli , Thomas Petazzoni Subject: [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Recongize the recently added infrastrucures: luarocks, perl, python, virtual. Signed-off-by: Fabio Porcedda Cc: Jerzy Grzegorek Cc: Luca Ceresoli Cc: Thomas Petazzoni Acked-by: Thomas Petazzoni --- support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 4effa59..fd60d7d 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -72,6 +72,10 @@ td.lotsofpatches { autotools_packages=0 cmake_packages=0 +luarocks_package=0 +perl_packages=0 +python_packages=0 +virtual_packages=0 generic_packages=0 manual_packages=0 packages_with_licence=0 @@ -99,6 +103,10 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do $i = "package/x11r7/x11r7.mk" -o \ $i = "package/pkg-autotools.mk" -o \ $i = "package/pkg-cmake.mk" -o \ + $i = "package/pkg-luarocks.mk" -o \ + $i = "package/pkg-perl.mk" -o \ + $i = "package/pkg-python.mk" -o \ + $i = "package/pkg-virtual.mk" -o \ $i = "package/pkg-download.mk" -o \ $i = "package/pkg-generic.mk" -o \ $i = "package/pkg-utils.mk" ; then @@ -123,6 +131,45 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do hastarget=1 fi + if grep -E "\(host-luarocks-package\)" $i > /dev/null ; then + infratype="luarocks" + hashost=1 + fi + + if grep -E "\(luarocks-package\)" $i > /dev/null ; then + infratype="luarocks" + hastarget=1 + fi + + if grep -E "\(host-perl-package\)" $i > /dev/null ; then + infratype="perl" + hashost=1 + fi + + if grep -E "\(perl-package\)" $i > /dev/null ; then + infratype="perl" + hastarget=1 + fi + + if grep -E "\(host-python-package\)" $i > /dev/null ; then + infratype="python" + hashost=1 + fi + + if grep -E "\(python-package\)" $i > /dev/null ; then + infratype="python" + hastarget=1 + fi + if grep -E "\(host-virtual-package\)" $i > /dev/null ; then + infratype="virtual" + hashost=1 + fi + + if grep -E "\(virtual-package\)" $i > /dev/null ; then + infratype="virtual" + hastarget=1 + fi + if grep -E "\(host-generic-package\)" $i > /dev/null ; then infratype="generic" hashost=1 @@ -156,6 +203,14 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do autotools_packages=$(($autotools_packages+1)) elif [ ${infratype} = "cmake" ]; then cmake_packages=$(($cmake_packages+1)) + elif [ ${infratype} = "luarocks" ]; then + luarocks_packages=$(($luarocks_packages+1)) + elif [ ${infratype} = "perl" ]; then + perl_packages=$(($perl_packages+1)) + elif [ ${infratype} = "python" ]; then + python_packages=$(($python_packages+1)) + elif [ ${infratype} = "virtual" ]; then + virtual_packages=$(($virtual_packages+1)) elif [ ${infratype} = "generic" ]; then generic_packages=$(($generic_packages+1)) fi @@ -244,6 +299,22 @@ echo "Packages using the autotools infrastructure" echo "$autotools_packages" echo "" echo "" +echo "Packages using the luarocks infrastructure" +echo "$luarocks_packages" +echo "" +echo "" +echo "Packages using the perl infrastructure" +echo "$perl_packages" +echo "" +echo "" +echo "Packages using the python infrastructure" +echo "$python_packages" +echo "" +echo "" +echo "Packages using the virtual infrastructure" +echo "$virtual_packages" +echo "" +echo "" echo "Packages not using any infrastructure" echo "$manual_packages" echo ""