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

# 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