OpenSDE Framework (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
430 B

categories=$(cat etc/categories | sed -e "s/^#.*$//" | cut -f1 | sort -b | uniq)
# Output the total number of packages
pkgs=$(find package -name "*.desc" | wc -l)
echo Total number of packages: $pkgs
echo ""
for category in $categories; do
# Determine the number of packages containing
# the current categories.
categoryOwners=$(grep -e "^\[C[^O].*$category" package/*/*/*.desc | wc -l)
echo $category $categoryOwners
done