commit: ac021b43e1d310ea390535c0456285e0855fd5f4 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon Mar 19 22:21:24 2018 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Mar 19 22:21:24 2018 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ac021b43
eapi_usage.sh: Ignore Manifest and gzipped files. Also EAPI should always be explicit in the md5-cache, so a default of 0 is not necessary. eapi_usage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eapi_usage.sh b/eapi_usage.sh index 3e72883..fd5df9d 100755 --- a/eapi_usage.sh +++ b/eapi_usage.sh @@ -7,10 +7,10 @@ # #pinspect eapi_usage /usr/portage -find /usr/portage/metadata/md5-cache -type f -exec awk ' +find /usr/portage/metadata/md5-cache -type f \ + ! -name '*.gz' ! -name 'Manifest*' -exec awk ' BEGINFILE { found=0 } /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; found=1; nextfile } - ENDFILE { if (!found) eapi[0]++ } END { for (i in eapi) print i,eapi[i] } ' '{}' '+' | awk ' { eapi[$1]+=$2; total+=$2 }