freebsd-ports/Tools/portbuild/scripts/stats
Mark Linimon 2fe59a537a Generalize the packge building scripts to be able to be run on more than
one 'head' node, rather than just pointyhat itself.

Constants are factored out into installation-specific files known as
portbuild/conf/server.conf and portbuild/conf/client.conf.  There is
only one server.conf file.  Individual <arch> directories may have
their own client.conf files, or may symlink to ../conf/client.conf.

While here, do some refactoring.

Feature safe:	yes
2010-06-25 23:39:54 +00:00

20 lines
331 B
Bash
Executable file

#!/bin/sh
pb=/var/portbuild
. ${pb}/conf/server.conf
if [ $# -ne 1 ]; then
echo "usage: <branch>"
exit 1
fi
branch=$1
for i in ${SUPPORTED_ARCHS}; do
all=${pb}/$i/${branch}/builds/latest/packages/All
if [ -d ${all} ]; then
count=$(find ${all} -name \*.tbz -o -name \*.tgz |wc -l)
echo -n "$i: ${count} "
fi
done
echo