Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 41380
Collapse All | Expand All

(-)/usr/bin/gentool-package-count (-1 / +1 lines)
Lines 1-7 Link Here
1
#! /bin/sh
1
#! /bin/sh
2
2
3
pcnt=`find /usr/portage/ -type f -name "*.ebuild" | sed "s/-[0-9].*//" | sort -u | wc -l`
3
pcnt=`find /usr/portage/ -type f -name "*.ebuild" | sed "s/-[0-9].*//" | sort -u | wc -l`
4
numebuilds=`find /usr/portage/ -type f -name "*.ebuild" | wc -l`
4
numebuilds=`find /usr/portage/ -type f -name "*-*.ebuild" | wc -l`
5
numcat=`find /usr/portage/ -type d -name "*-*" -maxdepth 1 | wc -l`
5
numcat=`find /usr/portage/ -type d -name "*-*" -maxdepth 1 | wc -l`
6
6
7
echo "Number of categories : $numcat"
7
echo "Number of categories : $numcat"

Return to bug 41380