aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-01-24 12:54:45 +0800
committerkris <kris@FreeBSD.org>2003-01-24 12:54:45 +0800
commit284c3ebac28b378f31830e8245b8161799b2f1f0 (patch)
tree990e29f56429d96de513dee5a94b1fdc0166153d /Tools/portbuild
parent7b1d44e95cf81e13dc3c30b236d5d8c9dba267cd (diff)
downloadfreebsd-ports-gnome-284c3ebac28b378f31830e8245b8161799b2f1f0.tar.gz
freebsd-ports-gnome-284c3ebac28b378f31830e8245b8161799b2f1f0.tar.zst
freebsd-ports-gnome-284c3ebac28b378f31830e8245b8161799b2f1f0.zip
- Use ${arch}
- Support builds as non-privileged user
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/reportload5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/reportload b/Tools/portbuild/scripts/reportload
index 09cae20dd1e7..0044db5cc75c 100755
--- a/Tools/portbuild/scripts/reportload
+++ b/Tools/portbuild/scripts/reportload
@@ -6,8 +6,9 @@
# configurable variables
pb=/var/portbuild
+arch=$1
-. ${pb}/portbuild.conf
+. ${pb}/${arch}/portbuild.conf
me=$(hostname -s)
tmpfile=${scratchdir}/${me}
@@ -16,7 +17,7 @@ while true; do
num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l))
echo -n "$num " > ${tmpfile}
uptime >> ${tmpfile}
- scp -q ${tmpfile} $master:${pb}/loads/
+ scp -q ${tmpfile} ${user}@${master}:${pb}/${arch}/loads/
rm -f ${tmpfile}
sleep 5
done