summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-09-26 22:09:59 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-09-26 22:09:59 +0000
commit0147d90a3be42cb10f207646f648f4a66a525020 (patch)
tree97f6058b176779d4861978125b61cbf2f8895317 /Tools
parentBreak out the setupnode function of dopackages into a separate script so (diff)
* Break out setupnode into the dosetupnode script so it may be called
manually * Support 6.x builds Approved by: portmgr (self)
Notes
Notes: svn path=/head/; revision=118450
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackages40
1 files changed, 3 insertions, 37 deletions
diff --git a/Tools/portbuild/scripts/dopackages b/Tools/portbuild/scripts/dopackages
index f78cc14253f8..499933534a63 100755
--- a/Tools/portbuild/scripts/dopackages
+++ b/Tools/portbuild/scripts/dopackages
@@ -83,38 +83,6 @@ makeduds () {
cp -p ${pb}/${arch}/${branch}/duds ${pb}/${arch}/${branch}/duds.orig
}
-# usage: setupnode pb arch scripts branch me node md5 tmpdir
-setupnode () {
- pb=$1
- arch=$2
- scripts=$3
- branch=$4
- me=$5
- node=$6
- md5=$7
- tmpdir=$8
-
- echo "setting up of $node started at $(date)"
-
- # Read in client config and decide if the node is disconnected or not (i.e. mounts via NFS)
- disconnected=0
- . ${pb}/${arch}/portbuild.${node}
-
- scp -p ${scripts}/setupnode root@${node}:/tmp
- ssh -n root@${node} sh /tmp/setupnode ${me} ${pb} ${arch} ${branch} ${tmpdir} ${md5} ${disconnected}
-
- if [ "${disconnected}" = 1 ]; then
- rsync -r -l -p --delete ${pb}/scripts root@${node}:${pb}/
- rsync -r -l -p --delete ${pb}/${arch}/portbuild* root@${node}:${pb}/${arch}
- rsync -r -l -p --delete ${pb}/${arch}/${branch}/ports root@${node}:${pb}/${arch}/${branch}
- rsync -r -l -p --delete ${pb}/${arch}/${branch}/src root@${node}:${pb}/${arch}/${branch}
- rsync -r -l -p --delete ${pb}/${arch}/${branch}/doc root@${node}:${pb}/${arch}/${branch}
- rsync -r -l -p --delete ${pb}/${arch}/${branch}/tarballs/bindist* root@${node}:${pb}/${arch}/${branch}/tarballs
- fi
-
- echo "setting up of $node ended at $(date)"
-}
-
# usage: restrictedlist pb scripts branch
restrictedlist () {
pb=$1
@@ -296,7 +264,7 @@ fi
branch=$1
date=$2
-if [ "x$branch" != x4 -a "x$branch" != x4-exp -a "x$branch" != x5 ]; then
+if [ "x$branch" != x4 -a "x$branch" != x4-exp -a "x$branch" != x5 -a "x$branch" != x6 ]; then
usage
fi
@@ -391,12 +359,11 @@ if [ "$skipstart" = 0 ]; then
fi
if [ "$nobuild" = 0 -a "$finish" = 0 ]; then
- md5=$(/sbin/md5 ${pb}/${arch}/${branch}/tarballs/bindist.tar | awk '{print $4}')
echo "================================================"
echo "setting up nodes"
echo "================================================"
for node in $(awk '{print $1}' ${pb}/${arch}/mlist); do
- setupnode ${pb} ${arch} ${scripts} ${branch} ${me} ${node} ${md5} ${scratchdir} &
+ ${scripts}/dosetupnode ${arch} ${branch} ${node} &
done
fi
@@ -541,12 +508,11 @@ if [ "$nobuild" = 0 ]; then
cd ${pb}/${arch}/${branch}/old-errors
${scripts}/processlogs
- md5=$(/sbin/md5 ${pb}/${arch}/${branch}/tarballs/bindist.tar | awk '{print $4}')
echo "================================================"
echo "setting up nodes"
echo "================================================"
for node in $(awk '{print $1}' ${pb}/${arch}/mlist); do
- setupnode ${pb} ${arch} ${scripts} ${branch} ${me} ${node} ${md5} ${scratchdir} &
+ ${scripts}/dosetupnode ${arch} ${branch} ${node} &
sleep 2
done