From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RtRyH-0002Rf-1M for garchives@archives.gentoo.org; Fri, 03 Feb 2012 22:51:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6316DE058A; Fri, 3 Feb 2012 22:51:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 30964E058A for ; Fri, 3 Feb 2012 22:51:02 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AE1771B4009 for ; Fri, 3 Feb 2012 22:51:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D2B7D8004F for ; Fri, 3 Feb 2012 22:51:00 +0000 (UTC) From: "Ulrich Mueller" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Mueller" Message-ID: Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: check_eclasses_eapis.sh X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Mueller X-VCS-Revision: ed4fa2c54dffce108bfd0e2d485e4c83c32d6462 Date: Fri, 3 Feb 2012 22:51:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 7428f011-5a36-40c0-a572-d30985ef2e30 X-Archives-Hash: cd30af5fa61a327192b51b6db86878b6 commit: ed4fa2c54dffce108bfd0e2d485e4c83c32d6462 Author: Ulrich M=C3=BCller gentoo org> AuthorDate: Fri Feb 3 22:47:23 2012 +0000 Commit: Ulrich Mueller gentoo org> CommitDate: Fri Feb 3 22:51:19 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/qa-scripts.gi= t;a=3Dcommit;h=3Ded4fa2c5 check_eclasses_eapis.sh: Fix awk syntax. This avoids false positives for eclasses whose name is a substring of another eclass's name. (Same for EAPIs.) --- check_eclasses_eapis.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh index 380b131..a5eb736 100755 --- a/check_eclasses_eapis.sh +++ b/check_eclasses_eapis.sh @@ -25,11 +25,11 @@ for x in ${ECLASSES}; do echo "Processing eclass \"${x}\"" rm -rf "${x}" mkdir "${x}" - awk -F'=3D' '$3 ~ /'"${x%.eclass}"'[ "]/ {print $1" "$2}' "${TMPEAPIS}"= > "${TMPECLASS}" + awk -F'=3D' '$3 ~ /[ "]'"${x%.eclass}"'[ "]/ {print $1" "$2}' "${TMPEAP= IS}" > "${TMPECLASS}" pushd "${x}" > /dev/null echo "Overall statistic for eclass \"${x}\":" > "STATS.txt" for y in ${KNOWN_EAPIS}; do - awk -F ' ' '$3 ~ /'"${y}"'/ {print $1}' "${TMPECLASS}" > "${y}.txt" + awk -F ' ' '$3 ~ /"'"${y}"'"/ {print $1}' "${TMPECLASS}" > "${y}.txt" tmpval=3D$(wc -l "${y}.txt" |cut -d' ' -f1) echo "EAPI=3D${y} count: ${tmpval}" >> "STATS.txt" done