4 PARSE
="--enable-parse-clocks"
6 STD
="--enable-simulator"
11 *) PARALLEL_BUILDS
=$SIMUL
14 case "$PARALLEL_BUILDS" in
16 *) echo Launching
$PARALLEL_BUILDS parallel builds on each machine
20 # barnstable freebsd-6.1
21 # beauregard freebsd-6.0
22 # X churchy alpha-dec-osf5.1
23 # deacon sparc-sun-solaris2.10
24 # grundoon freebsd-6.2
26 # o macabre freebsd-6.1-STABLE
28 # whimsy sparc-sun-solaris2.10
31 # * baldwin sparc-sun-solaris2.10
32 # * bridgeport sparc-sun-solaris2.10
33 # * cowbird freebsd-6.1
34 # * malarky sparc-sun-solaris2.10
35 # * pogo sparc-sun-solaris2.10
36 # * rackety freebsd-6.1
38 # HMS: we need $PWD because solaris produces /deacon/backroom when
39 # we are in /backroom and in general there is no /deacon/backroom.
42 SIG
=`perl -e 'print rand'`
45 '') LIST
="baldwin bridgeport cowbird malarky pogo rackety" ;;
51 [ -f .buildkey-
$i ] && SKIPTHIS
=1
54 echo flock-build running on
$i? check LIST
, skipping
58 echo $SIG > .buildkey-
$i
61 ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
62 ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
63 ssh $i "cd $c_d ; ./build $SIG $STD --disable-all-clocks $BUILD_ARGS" &
66 cat > .flockbuild-
$i-$SIG <<ENDQUOT
69 # depends on job control and expects to be invoked under ssh -tt
74 ./build $SIG $PARSE $STD $BUILD_ARGS &
76 COUNT=\`expr \$COUNT + 1\`
77 echo $i started build \$COUNT of 4
78 [ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
80 ./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS &
82 COUNT=\`expr \$COUNT + 1\`
83 echo $i started build \$COUNT of 4
84 [ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
86 ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS &
88 COUNT=\`expr \$COUNT + 1\`
89 echo $i started build \$COUNT of 4
90 [ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
92 ./build $SIG $STD --disable-all-clocks $BUILD_ARGS &
94 COUNT=\`expr \$COUNT + 1\`
95 echo $i started build \$COUNT of 4
97 echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done.
100 chmod +x .flockbuild-
$i-$SIG
101 ssh -tt $i "$c_d/.flockbuild-$i-$SIG ; \
102 rm $c_d/.flockbuild-$i-$SIG" 2>/dev
/null
&
106 echo `date -u '+%H:%M:%S'` flock-build launched