diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2005-01-06 23:06:41 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2005-01-06 23:06:41 +0000 |
commit | dbfcfd10a4e015cfa4284e34745feb67ad85e0e8 (patch) | |
tree | 811184e774c7490197c58106a9d4605656d155fd /Tools | |
parent | d1235211921eee24dc9b1d9bdec667cf2ca7ed19 (diff) | |
download | ports-dbfcfd10a4e015cfa4284e34745feb67ad85e0e8.tar.gz ports-dbfcfd10a4e015cfa4284e34745feb67ad85e0e8.zip |
* The mlist file now only has one field per line.
* Correctly calculate job concurrency in pass two as well
* In pass two run dosetupnode -rsync to avoid wasting time.
Approved by: portmgr (self)
Notes
Notes:
svn path=/head/; revision=125736
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dopackages | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Tools/portbuild/scripts/dopackages b/Tools/portbuild/scripts/dopackages index 481376a026fe..f33f3b71e40d 100755 --- a/Tools/portbuild/scripts/dopackages +++ b/Tools/portbuild/scripts/dopackages @@ -353,7 +353,7 @@ if [ "$nobuild" = 0 -a "$finish" = 0 ]; then echo "================================================" echo "setting up nodes" echo "================================================" - for node in $(awk '{print $1}' ${pb}/${arch}/mlist); do + for node in $(cat ${pb}/${arch}/mlist); do ${scripts}/dosetupnode ${arch} ${branch} ${node} & done fi @@ -508,8 +508,8 @@ if [ "$nobuild" = 0 ]; then echo "================================================" echo "setting up nodes" echo "================================================" - for node in $(awk '{print $1}' ${pb}/${arch}/mlist); do - ${scripts}/dosetupnode ${arch} ${branch} ${node} & + for node in $(cat ${pb}/${arch}/mlist); do + ${scripts}/dosetupnode ${arch} ${branch} ${node} -norsync & sleep 2 done @@ -517,7 +517,12 @@ if [ "$nobuild" = 0 ]; then echo "setting up of nodes ended at $(date)" - count=$(awk '{sum+=$2}END{print sum+NR/2}' ${pb}/${arch}/mlist | sed -e 's/\..*$//') + count=0 + for i in `cat ${pb}/${arch}/mlist`; do + . ${pb}/${arch}/portbuild.conf + test -f ${pb}/${arch}/portbuild.${i} && . ${pb}/${arch}/portbuild.${i} + count=$((${count}+${maxjobs})) + done cd ${pb}/${arch}/${branch}/packages/All echo "================================================" echo "building packages (phase 2)" |