Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed find_empty.sh to estat.sh

Now it can be used to find packages with multiple useless ebuilds

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
commit 14217f081e20399e46923d5a824f51d2db5fc5ca 1 parent fd65b2a
Sergei Trofimovich authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 find_empty.sh → estat.sh
9 find_empty.sh → estat.sh
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.