summaryrefslogtreecommitdiffstats
path: root/tools/encap-util-count.sh
blob: 848a8d6486041e9e2a03da02e5b93a48f4d940ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# $Id$

# This shows a count of encap packages per directory
# Can be useful to make sure you have everything
# built for all platforms. It assumes the directory
# has a *.run file in it (from the bcfg2 encap build)

for RUN in $(find . -type f | grep run$); do 
    DIR="$(dirname $RUN)"
    printf "${DIR}: "
    (cd $DIR && ls | wc -l)
done

exit 0