File: flock-build

package info (click to toggle)
ntp 1%3A4.2.2.p4%2Bdfsg-2etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 10,236 kB
  • ctags: 10,865
  • sloc: ansic: 90,242; sh: 4,314; perl: 1,331; makefile: 631; awk: 417; asm: 37; sed: 7
file content (56 lines) | stat: -rwxr-xr-x 1,429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /bin/sh

BUILD_ARGS="$@"
PARSE="--enable-parse-clocks"
#PARSE=
STD="--with-sntp --enable-simulator"

# Backroom:
#   beauregard	   freebsd-4
#   deacon	   sparc-sun-solaris2.7
#   grundoon	   sparc-sun-sunos4.1.3
#   howland	   freebsd-4
#   mort	   sparc-sun-solaris2.8
#   whimsy	   sparc-sun-solaris2.8

# Campus:
# * albert	   redhat-8
#   baldwin	   sparc-sun-solaris2.8
#   bridgeport	   sparc-sun-solaris2.8
# * bunnylou	   alpha-dec-osf4.0
# * churchy	   alpha-dec-osf5.1
#   cowbird	   alpha-dec-osf4.0
#   malarky	   sparc-sun-solaris2.8
# * pogo	   sparc-sun-solaris2.8
# * porkypine	   mips-dec-ultrix4.4
# * rackety	   sparc-sun-sunos4.1.3/cc
# ? roogey	   debian
# ? snavely	   hppa1.1-hp-hpux10.20

c_d=${PWD:-`pwd`}

SIG=`perl -e 'print rand'`
echo $SIG > .buildkey

case "$LIST" in
 '') LIST="albert bunnylou churchy cowbird pogo porkypine rackety" ;;
esac

for i in $LIST
do
    echo $i
    case "1" in
     0)
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
	;;
     1) ssh $i "cd $c_d ; \
./build $SIG $PARSE $STD $BUILD_ARGS ; \
./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS ; \
./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS ; \
./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" \
&
	;;
    esac
done