licenses=$(cat etc/licenses | sed -e "s/^#.*$//" | cut -f1 | sort -b | uniq) # Output the total number of packagespkgs=$(find package -name "*.desc" | wc -l)echo Total number of packages: $pkgsecho "" for lic in $licenses; do # Determine the number of packages containing # the current license. licOwners=$(grep -e "^\[L.*$lic" package/*/*/*.desc | wc -l) echo $lic $licOwnersdone
licenses=$(cat etc/licenses | 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 lic in $licenses; do
# Determine the number of packages containing
# the current license.
licOwners=$(grep -e "^\[L.*$lic" package/*/*/*.desc | wc -l)
echo $lic $licOwners
done