diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2003-02-14 09:26:20 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2003-02-14 09:26:20 +0000 |
commit | 182d4cc46ddb37faf6d1066d5dfa6ddfae509635 (patch) | |
tree | b0c465fd29fa3130e4b1137851362dadf885dab6 /Tools/portbuild/scripts/pdispatch | |
parent | - If ${ftp} = 0 in mkbindist.conf, then use the makeworld script to build (diff) |
Work around broken rand() in -current by changing the way we pick a
random build host.
Notes
Notes:
svn path=/head/; revision=75495
Diffstat (limited to '')
-rwxr-xr-x | Tools/portbuild/scripts/pdispatch | 6 |
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" |