Index: head/Tools/portbuild/scripts/allgohans =================================================================== --- head/Tools/portbuild/scripts/allgohans (revision 118450) +++ head/Tools/portbuild/scripts/allgohans (revision 118451) @@ -1,50 +1,54 @@ #!/bin/sh doarch() { arch=$1 shift if [ -f "${pb}/${arch}/portbuild.conf" ]; then . ${pb}/${arch}/portbuild.conf else echo "Invalid arch" exit 1 fi machines=$(awk '{print $1}' ${pb}/${arch}/mlist) for i in ${machines}; do + . ${pb}/${arch}/portbuild.conf + if [ -f "${pb}/${arch}/portbuild.${i}" ]; then + . ${pb}/${arch}/portbuild.${i} + fi if [ ${quiet} -eq 0 ]; then echo "[$i]" fi - su ports-${arch} -c "ssh root@$i $@" + su ports-${arch} -c "ssh ${client_user}@$i ${sudo_cmd} $@" done } id=$(whoami) if [ "${id}" = "root" ]; then arch=$1 shift root=1 else arch=$(echo $id | sed s,ports-,,) root=0 fi if [ "$1" = "-q" ]; then quiet=1 shift else quiet=0 fi pb=/var/portbuild if [ "${arch}" = "all" ]; then arches=$(find ${pb}/*/portbuild.conf) for i in ${arches}; do arch=$(basename $(dirname $i)) doarch $arch "$@" done else doarch $arch "$@" fi Property changes on: head/Tools/portbuild/scripts/allgohans ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property