commit: d02922ea9d5ba04f70d116d0111cdaac85121626
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 22:28:49 2018 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 22:28:49 2018 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d02922ea
eapi_usage.sh: Delete unused variable.
eapi_usage.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/eapi_usage.sh b/eapi_usage.sh
index fd5df9d..9ed0819 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -9,8 +9,7 @@
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 }
+ /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; nextfile }
END { for (i in eapi) print i,eapi[i] }
' '{}' '+' | awk '
{ eapi[$1]+=$2; total+=$2 }