Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
renamed find_empty.sh to estat.sh
Browse files Browse the repository at this point in the history
Now it can be used to find packages with multiple useless ebuilds

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information
Sergei Trofimovich committed Dec 25, 2012
1 parent fd65b2a commit 14217f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions find_empty.sh → estat.sh
Expand Up @@ -11,8 +11,9 @@ shopt -s nullglob

for c in $(< "$tree_root/profiles/categories"); do
for pkg in "$tree_root"/$c/*; do
is_empty() { [[ -z $@ ]]; }
[[ $pkg != */CVS ]] && [[ $pkg != */metadata.xml ]] &&
is_empty $pkg/*.ebuild && echo "${pkg#${tree_root}/}"
len() { echo ${#@}; }
[[ $pkg != */CVS ]] &&
[[ $pkg != */metadata.xml ]] &&
echo "$(len "${pkg}"/*.ebuild) ${pkg#${tree_root}/}"
done
done
done | sort -r -n -k1

0 comments on commit 14217f0

Please sign in to comment.