aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-12-28 05:50:37 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-12-28 05:50:37 +0000
commit23bd58ef86609f883f5dff20a8baf9bc453cce7f (patch)
treee65e0e42f4bab7599474763a68ee1bc8c39195c2 /Tools
parent01e42e5b2df5987b0aad849b20e94e50cf88b2aa (diff)
downloadports-23bd58ef86609f883f5dff20a8baf9bc453cce7f.tar.gz
ports-23bd58ef86609f883f5dff20a8baf9bc453cce7f.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dosetupnode10
1 files changed, 8 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/dosetupnode b/Tools/portbuild/scripts/dosetupnode
index dea397e48248..b45a623e2f1d 100755
--- a/Tools/portbuild/scripts/dosetupnode
+++ b/Tools/portbuild/scripts/dosetupnode
@@ -5,7 +5,12 @@ pb=/var/portbuild
arch=$1
branch=$2
node=$3
-shift
+shift 3
+
+norsync=0
+if [ "$1" = "-norsync" ]; then
+ norsync=1
+fi
. ${pb}/${arch}/portbuild.conf
@@ -25,7 +30,7 @@ if [ ! -z "${sudo_cmd}" ]; then
ssh -n ${client_user}@${node} ${sudo_cmd} "chown -R ${client_user} /var/portbuild/"
fi
-if [ "${disconnected}" = 1 ]; then
+if [ "${disconnected}" = 1 -a "${norsync}" = 0 ]; then
rsync ${rsync_gzip} -r -l -p --delete ${pb}/scripts ${client_user}@${node}:${pb}/
rsync ${rsync_gzip} -r -l -p --delete ${pb}/${arch}/portbuild* ${client_user}@${node}:${pb}/${arch}
rsync ${rsync_gzip} -r -l -p --delete ${pb}/${arch}/${branch}/ports ${client_user}@${node}:${pb}/${arch}/${branch}
@@ -34,4 +39,5 @@ if [ "${disconnected}" = 1 ]; then
rsync ${rsync_gzip} -r -l -p --delete ${pb}/${arch}/${branch}/tarballs/bindist* ${client_user}@${node}:${pb}/${arch}/${branch}/tarballs
fi
+lockf ${pb}/${arch}/queue/.lock ${pb}/scripts/pollmachine ${arch} ${node} -queue
echo "setting up of $node ended at $(date)"