aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2010-06-26 07:39:54 +0800
committerlinimon <linimon@FreeBSD.org>2010-06-26 07:39:54 +0800
commit0975d74a78daf29045cb479aec004bf894f6b234 (patch)
tree9f3e0b5342bb5496e19b09d8ef80c709d6e45216 /Tools
parentaf5078695dad5de17d86309ac623b6e07417741a (diff)
downloadfreebsd-ports-graphics-0975d74a78daf29045cb479aec004bf894f6b234.tar.gz
freebsd-ports-graphics-0975d74a78daf29045cb479aec004bf894f6b234.tar.zst
freebsd-ports-graphics-0975d74a78daf29045cb479aec004bf894f6b234.zip
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
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/stats8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/stats b/Tools/portbuild/scripts/stats
index c4e7e92a15a..3e84e571564 100755
--- a/Tools/portbuild/scripts/stats
+++ b/Tools/portbuild/scripts/stats
@@ -1,6 +1,7 @@
#!/bin/sh
-SUPPORTED_ARCHS="amd64 i386 ia64 sparc64"
+pb=/var/portbuild
+. ${pb}/conf/server.conf
if [ $# -ne 1 ]; then
echo "usage: <branch>"
@@ -10,8 +11,9 @@ fi
branch=$1
for i in ${SUPPORTED_ARCHS}; do
- if [ -d /var/portbuild/$i/${branch}/builds/latest/packages/All ]; then
- count=$(find /var/portbuild/$i/${branch}/builds/latest/packages/All -name \*.tbz -o -name \*.tgz |wc -l)
+ 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