diff options
-rwxr-xr-x | Tools/portbuild/scripts/allgohans | 11 | ||||
-rwxr-xr-x | Tools/portbuild/scripts/allgohans.safe | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/Tools/portbuild/scripts/allgohans b/Tools/portbuild/scripts/allgohans index 21cc660cbc6f..7c3baa5d3398 100755 --- a/Tools/portbuild/scripts/allgohans +++ b/Tools/portbuild/scripts/allgohans @@ -12,7 +12,7 @@ doarch() { fi machines=$(awk '{print $1}' ${pb}/${arch}/mlist) - + for i in ${machines}; do . ${pb}/${arch}/portbuild.conf if [ -f "${pb}/${arch}/portbuild.${i}" ]; then @@ -25,11 +25,10 @@ doarch() { done } -parm=$1 -shift id=$(whoami) if [ "${id}" = "root" ]; then - arch=${parm} + arch=$1 + shift root=1 else arch=$(echo $id | sed s,ports-,,) @@ -44,9 +43,9 @@ else fi pb=/var/portbuild -. ${pb}/conf/server.conf +. ${pb}/scripts/server.conf -if [ "${parm}" = "all" ]; then +if [ "${arch}" = "all" ]; then arches=$(find ${pb}/*/portbuild.conf) for i in ${arches}; do arch=$(basename $(dirname $i)) diff --git a/Tools/portbuild/scripts/allgohans.safe b/Tools/portbuild/scripts/allgohans.safe index ce79fc1f9c71..290755c73584 100755 --- a/Tools/portbuild/scripts/allgohans.safe +++ b/Tools/portbuild/scripts/allgohans.safe @@ -12,7 +12,7 @@ doarch() { fi machines=$(awk '{print $1}' ${pb}/${arch}/mlist) - + for i in ${machines}; do . ${pb}/${arch}/portbuild.conf if [ -f "${pb}/${arch}/portbuild.${i}" ]; then @@ -29,11 +29,10 @@ doarch() { done } -parm=$1 -shift id=$(whoami) if [ "${id}" = "root" ]; then - arch=${parm} + arch=$1 + shift root=1 else arch=$(echo $id | sed s,ports-,,) @@ -48,9 +47,9 @@ else fi pb=/var/portbuild -. ${pb}/conf/server.conf +. ${pb}/scripts/server.conf -if [ "${parm}" = "all" ]; then +if [ "${arch}" = "all" ]; then arches=$(find ${pb}/*/portbuild.conf) for i in ${arches}; do arch=$(basename $(dirname $i)) |