Manifold reports got graphs.
[swift-upb.git] / mfold / doall
1 #!/bin/bash
2 # This script executes a chain of commands
3 # on all the member servers, in parallel.
4 # Commands are defined in .sh files (see
5 # docmd.sh); all failed executions are
6 # put to the FAILURES file
7 rm -f FAILURES
8 if [ ! -d logs ]; then
9     mkdir logs
10 fi
11
12 if [ -z "$SERVERS" ]; then
13     SERVERS="servers.txt"
14 fi
15
16 for srv in `grep -v '^#' $SERVERS`; do
17     (
18         if ! ./docmd $srv $1; then
19             echo $srv >> FAILURES
20             echo $srv FAILED
21             break
22         fi
23     ) &
24 done
25
26 wait
27 echo DONE