forked from Lainports/freebsd-ports
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
20 lines
331 B
Bash
Executable file
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
|