Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 412 Bytes
#!/bin/bash
[[ -z $1 ]] && {
echo "usage $0 <ebuild-tree>"
exit 1
}
tree_root=$1
shopt -s nullglob
for c in $(< "$tree_root/profiles/categories"); do
for pkg in "$tree_root"/$c/*; do
len() { echo ${#@}; }
[[ $pkg != */CVS ]] &&
[[ $pkg != */metadata.xml ]] &&
echo "$(len "${pkg}"/*.ebuild) ${pkg#${tree_root}/}"
done
done | sort -r -n -k1 | grep -v '^1 '
Something went wrong with that request. Please try again.