xref: /freebsd/contrib/ntp/flock-build (revision 39beb93c3f8bdbf72a61fda42300b5ebed7390c8)
1#! /bin/sh
2
3BUILD_ARGS="$@"
4PARSE="--enable-parse-clocks"
5#PARSE=
6STD="--enable-simulator"
7
8# Backroom:
9#   beauregard	   freebsd-6
10# o churchy	   alpha-dec-osf5.1
11#   deacon	   sparc-sun-solaris2.10
12#   grundoon	   freebsd-6.1
13#   howland	   freebsd-6.1
14# o macabre	   sparc-sun-solaris2.8
15# o mort	   sparc-sun-solaris2.8
16#   whimsy	   sparc-sun-solaris2.10
17
18# Campus:
19# * baldwin	   sparc-sun-solaris2.10
20# * bridgeport	   sparc-sun-solaris2.10
21# * cowbird	   freebsd-6.1
22# * malarky	   sparc-sun-solaris2.10
23# * pogo	   sparc-sun-solaris2.10
24# * rackety	   freebsd-6.1
25
26c_d=${PWD:-`pwd`}
27
28SIG=`perl -e 'print rand'`
29echo $SIG > .buildkey
30
31case "$LIST" in
32 '') LIST="baldwin bridgeport cowbird malarky pogo rackety" ;;
33esac
34
35for i in $LIST
36do
37    echo $i
38    case "1" in
39     0)
40    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
41    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
42    ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
43	;;
44     1) ssh $i "cd $c_d ; \
45./build $SIG $PARSE $STD $BUILD_ARGS ; \
46./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS ; \
47./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS ; \
48./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" \
49&
50	;;
51    esac
52done
53