3 IAM
=`hostname || uname -n`
4 MYNAME
=`IFS=. ; set $IAM ; echo $1`
17 PARSE
="--enable-parse-clocks"
19 STD
="--enable-simulator"
24 *) PARALLEL_BUILDS
=$SIMUL
27 case "$PARALLEL_BUILDS" in
29 *) echo Launching
$PARALLEL_BUILDS parallel builds on each machine
33 # barnstable freebsd-6.1
34 # beauregard freebsd-6.0
35 # X churchy alpha-dec-osf5.1
36 # deacon sparc-sun-solaris2.10
37 # grundoon freebsd-6.2
39 # o macabre freebsd-6.1-STABLE
41 # whimsy sparc-sun-solaris2.10
44 # * baldwin sparc-sun-solaris2.10
45 # * bridgeport sparc-sun-solaris2.10
46 # * malarky sparc-sun-solaris2.10
47 # * pogo sparc-sun-solaris2.10
48 # * rackety freebsd-6.1
50 # HMS: we need $PWD because solaris produces /deacon/backroom when
51 # we are in /backroom and in general there is no /deacon/backroom.
54 SIG
=`perl -e 'print rand'`
57 '') LIST
="malarky rackety" ;;
63 [ -f .buildkey-
$i ] && SKIPTHIS
=1
66 echo flock-build running on
$i? check LIST
, skipping
70 echo $SIG > .buildkey-
$i
73 ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
74 ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
75 ssh $i "cd $c_d ; ./build $SIG $STD --disable-all-clocks $BUILD_ARGS" &
78 cat > .flockbuild-
$i-$SIG <<-ENDQUOT
81 # script uses job control and expects to be invoked
82 # in a ssh session started with the -tt option,
83 # which forces a pseudo-tty to be used.
88 ./build $SIG $PARSE $STD $BUILD_ARGS &
90 COUNT=\`expr \$COUNT + 1\`
91 echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
92 [ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
96 ./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS &
98 COUNT=\`expr \$COUNT + 1\`
99 echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
100 [ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
102 ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS &
104 COUNT=\`expr \$COUNT + 1\`
105 echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
106 [ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
108 ./build $SIG $STD --disable-all-clocks $BUILD_ARGS &
110 COUNT=\`expr \$COUNT + 1\`
111 echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
114 echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done.
117 chmod +x .flockbuild-
$i-$SIG
118 ssh -tt $i "$c_d/.flockbuild-$i-$SIG ; \
119 rm $c_d/.flockbuild-$i-$SIG" 2>/dev
/null
&
123 echo `date -u '+%H:%M:%S'` flock-build launched