aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-02-14 09:26:20 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-02-14 09:26:20 +0000
commit182d4cc46ddb37faf6d1066d5dfa6ddfae509635 (patch)
treeb0c465fd29fa3130e4b1137851362dadf885dab6 /Tools
parentefc1842637f4d7f0f0cb6c57aea8a322b6ec0596 (diff)
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/pdispatch6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/pdispatch b/Tools/portbuild/scripts/pdispatch
index 212844094314..2f01f60615d9 100755
--- a/Tools/portbuild/scripts/pdispatch
+++ b/Tools/portbuild/scripts/pdispatch
@@ -31,10 +31,10 @@ if grep -qxF $pkgname ${pb}/${arch}/${branch}/duds; then
fi
args=${1+"$@"}
-mach=$(cat ${pb}/${arch}/ulist)
-num=$(echo $(echo $mach | wc -w))
+num=$(wc -w ${pb}/${arch}/ulist | awk '{print $1}')
+random=$(jot -r 1 1 ${num})
+mach=$(cat ${pb}/${arch}/ulist | cut -f ${random} -d ' ' )
set $mach
-shift $(echo "$$ $num" | awk '{srand($1); print(int(rand()*$2))}')
flags=""
if [ "x$NOCLEAN" != "x" ]; then
flags="${flags} -noclean"