aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2010-06-22 10:45:41 +0800
committerlinimon <linimon@FreeBSD.org>2010-06-22 10:45:41 +0800
commitcfd366ba8b9ce9cb49394fba58060b190467d1c8 (patch)
treedf600457d06ec7aeb5d7ad471dde767a76df6819
parentc28079c5addce35e3b89737410ba6de052eecded (diff)
downloadfreebsd-ports-gnome-cfd366ba8b9ce9cb49394fba58060b190467d1c8.tar.gz
freebsd-ports-gnome-cfd366ba8b9ce9cb49394fba58060b190467d1c8.tar.zst
freebsd-ports-gnome-cfd366ba8b9ce9cb49394fba58060b190467d1c8.zip
These appear to no longer be used.
Feature safe: yes
-rwxr-xr-xTools/portbuild/scripts/getmachine66
-rwxr-xr-xTools/portbuild/scripts/zsync38
2 files changed, 0 insertions, 104 deletions
diff --git a/Tools/portbuild/scripts/getmachine b/Tools/portbuild/scripts/getmachine
deleted file mode 100755
index fb3e71adecdd..000000000000
--- a/Tools/portbuild/scripts/getmachine
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-#
-# Choose the least-loaded machine in the queue dir
-# Called with lock held
-# We know that everything in this directory has space for another job
-
-pb=$1
-arch=$2
-branch=$3
-
-qdir=${pb}/${arch}/queue
-
-cd $qdir
-set *
-if [ "$1" = "*" ]; then
- echo ""
- exit 1
-fi
-
-
-min=999999
-while [ $# -gt 0 ]; do
- m=$1
-
- # Pull in maxjobs
- . ${pb}/${arch}/portbuild.conf
- test -f ${pb}/${arch}/portbuild.${m} && . ${pb}/${arch}/portbuild.${m}
-
- curjobs=$(cat $m)
- weight=$((${curjobs}*1000/${maxjobs}))
-
- if [ $weight -lt $min ]; then
- mach=$m
- min=$weight
- elif [ $weight -eq $min ]; then
- mach="${mach} ${m}"
- fi
- shift
-done
-
-if [ "$min" = 999999 -o -z "${mach}" ]; then
- echo ""
- exit 1
-fi
-
-# Choose highest-priority machine that is free
-mach=$(echo ${mach} | tr -s ' ' '\n' | grep -F -f - ${pb}/${arch}/mlist | head -1)
-if [ -z "${mach}" ]; then
- rm -f "${mach}"
- exit 1
-fi
-
-. ${pb}/${arch}/portbuild.conf
-test -f ${pb}/${arch}/portbuild.${mach} && . ${pb}/${arch}/portbuild.${mach}
-
-curjobs=$(cat $mach)
-# Now that we've found a machine, register our claim in the queue
-if [ "$((${curjobs}+1))" -ge "${maxjobs}" ]; then
- rm ${mach}
-else
- echo $(($curjobs+1)) > ${mach}
-fi
-
-# Report to caller
-echo ${mach}
-exit 0
diff --git a/Tools/portbuild/scripts/zsync b/Tools/portbuild/scripts/zsync
deleted file mode 100755
index 62f8e2b27e31..000000000000
--- a/Tools/portbuild/scripts/zsync
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-base=/a/cache
-zbase=a/cache
-
-fs=$1
-
-rsnap=$(zclient list | grep "^$fs " | tail -1 | awk '{print $2}')
-if [ -z "$rsnap" ]; then
- echo "No such filesystem $fs"
- exit 1
-fi
-
-lsnap=$(zfs list -Ht snapshot | grep "^$zbase/$fs@" | tail -1 | sed -e "s,^$zbase/$fs@,," | awk '{print $1}')
-if [ -z "$lsnap" ]; then
- echo "No local snapshot found"
- dofull=1
-else
- if [ "$lsnap" = "$rsnap" ]; then
- exit 0
- fi
- # Check for remotve snapshot
- if ! (zclient list | grep "^$fs $lsnap " > /dev/null); then
- echo "Local snapshot not found, removing and resyncing"
- zfs destroy $zbase/$fs@$lsnap
- dofull=0
- else
- dofull=1
- fi
-fi
-
-if [ "$dofull" = "1" ]; then
- zfs destroy -r ${zbase}/${fs}
- zclient get ${fs} ${rsnap} | zcat | zfs receive ${zbase}/${fs}
-else
- zclient diff ${fs} ${lsnap} ${rsnap} | zcat | zfs receive -F ${zbase}/${fs}
-fi
-