summaryrefslogtreecommitdiff
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-08-29 08:25:14 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-08-29 08:25:14 +0000
commitfcb5d2b7fe94e27553fba3d7cfa9393a8bf1ec35 (patch)
tree87f2178748ee995e19ea4a09cb529ec5d125d413 /Tools/portbuild
parentThe errors and logs are now in the archive directory named (diff)
Instead of doing a pwd | grep (duh!) to find the branch we are
building ports for, pass it as an argument. Pass NO_RESTRICTED, NOPLISTCHECK and NODUMMY to ssh as flags when said environment variables are set.
Notes
Notes: svn path=/head/; revision=32088
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/pdispatch31
1 files changed, 16 insertions, 15 deletions
diff --git a/Tools/portbuild/scripts/pdispatch b/Tools/portbuild/scripts/pdispatch
index 0eaeecc5bcc9..1bb396d6df2d 100755
--- a/Tools/portbuild/scripts/pdispatch
+++ b/Tools/portbuild/scripts/pdispatch
@@ -3,16 +3,9 @@
# wait 5 hours maximum
timeout=18000
-command=$1
-shift
-
-if pwd | grep -qF 2.2; then
- branch=2.2
-elif pwd | grep -qF 3; then
- branch=3
-else
- branch=4
-fi
+branch=$1
+command=$2
+shift 2
# ssh -x doesn't work on some machines
unset DISPLAY
@@ -30,10 +23,18 @@ mach=$(cat ${buildroot}/ulist)
num=$(echo $(echo $mach | wc -w))
set $mach
shift $(echo "$$ $num" | awk '{srand($1); print(int(rand()*$2))}')
+flags=""
if [ "x$NOCLEAN" != "x" ]; then
- echo "dispatching: ssh -a $1 ${command} ${branch} -noclean $args"
- ${buildroot}/scripts/ptimeout $timeout ssh -a $1 ${command} ${branch} -noclean $args
-else
- echo "dispatching: ssh -a $1 ${command} ${branch} $args"
- ${buildroot}/scripts/ptimeout $timeout ssh -a $1 ${command} ${branch} $args
+ flags="${flags} -noclean"
+fi
+if [ "x$NO_RESTRICTED" != "x" ]; then
+ flags="${flags} -norestr"
+fi
+if [ "x$NOPLISTCHECK" != "x" ]; then
+ flags="${flags} -noplistcheck"
+fi
+if [ "x$NODUMMY" != "x" ]; then
+ flags="${flags} -nodummy"
fi
+echo "dispatching: ssh -a $1 ${command} ${branch} $flags $args"
+${buildroot}/scripts/ptimeout $timeout ssh -a $1 ${command} ${branch} ${flags} $args