ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since 0f3d844 was 6716d78, checked in by Thierry Delisle <tdelisle@…>, 6 years ago |
Fixed gitignore which was ignoring tools/build and added missing distcc scripts
|
-
Property mode
set to
100755
|
File size:
745 bytes
|
Rev | Line | |
---|
[6716d78] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | hash="$1"
|
---|
| 4 | valid=$(distcc -j 2> /dev/null)
|
---|
| 5 | # if test "${valid}" != 0
|
---|
| 6 |
|
---|
| 7 | hosts_long=$(distcc --show-hosts 2> /dev/null)
|
---|
| 8 | hosts="localhost"
|
---|
| 9 | while read -r host; do
|
---|
| 10 | if [[ "${host}" =~ @?([A-Za-z0-9.\-]+)/.* ]]
|
---|
| 11 | then
|
---|
| 12 | hosts="${BASH_REMATCH[1]} ${hosts}"
|
---|
| 13 | else
|
---|
| 14 | >&2 echo "Could not parse host '${host}' (must use ssh hosts)"
|
---|
| 15 | exit 1
|
---|
| 16 | fi
|
---|
| 17 | done <<< "${hosts_long}"
|
---|
| 18 |
|
---|
| 19 | # echo "Copying to machines : ${hosts} (hash=${hash})"
|
---|
| 20 |
|
---|
| 21 | files="../../../driver/cfa ../../../driver/cfa-cpp ../../../driver/cc1 ../../../driver/as $(find . -name '*.c*' | tr '\n' ' ')"
|
---|
| 22 | # echo "Files ${files}"
|
---|
| 23 |
|
---|
| 24 | function push() {
|
---|
| 25 | ssh ${host} "mkdir -p ~/.cfadistcc/${hash}/"
|
---|
| 26 | rsync -a ${dV} ${files} ${host}:~/.cfadistcc/${hash}/.
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | for host in ${hosts}
|
---|
| 30 | do
|
---|
| 31 | push &
|
---|
| 32 | done
|
---|
| 33 |
|
---|
| 34 | wait
|
---|
Note:
See
TracBrowser
for help on using the repository browser.