aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xeapi-usage.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/eapi-usage.sh b/eapi-usage.sh
index 62e878f..b7a1112 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -56,12 +56,14 @@ mv ${TMPDIR}/eapi-usage/*.txt ${dir}/ || exit 1
rm -r "${TMPDIR}" || exit 1
# Now generate the numbers/summary (copied in from previous eapi_usage.sh script)
-# Boring 'script' that just uses pkgcore's pinspect command. Someday it would be
-# nice to graph this output, or maybe keep some running history?
-
+# Someday it would be nice to graph this output, or maybe keep some running history?
+# TODO: We used pinspect in the past which is cleaner but it's slower than the
+# awk method used below (we also stopped using it because at the time, pkgcore
+# lacked newer EAPI support).
#[[ $(type pinspect 2> /dev/null) ]] || exit 1
#
#pinspect eapi_usage /usr/portage
+
find "${REPO_PATH}"/metadata/md5-cache -type f ! -name '*.gz' \
-exec grep -h '^EAPI=' '{}' + \
| awk '