source: tools/build/push2dist.sh @ 6c6e36c

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 6c6e36c was 6716d78, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Fixed gitignore which was ignoring tools/build and added missing distcc scripts

  • Property mode set to 100755
File size: 745 bytes
Line 
1#!/bin/bash
2
3hash="$1"
4valid=$(distcc -j 2> /dev/null)
5# if test "${valid}" != 0
6
7hosts_long=$(distcc --show-hosts 2> /dev/null)
8hosts="localhost"
9while 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
17done <<< "${hosts_long}"
18
19# echo "Copying to machines : ${hosts} (hash=${hash})"
20
21files="../../../driver/cfa ../../../driver/cfa-cpp ../../../driver/cc1 ../../../driver/as $(find . -name '*.c*' | tr '\n' ' ')"
22# echo "Files ${files}"
23
24function push() {
25        ssh ${host} "mkdir -p ~/.cfadistcc/${hash}/"
26        rsync -a ${dV} ${files} ${host}:~/.cfadistcc/${hash}/.
27}
28
29for host in ${hosts}
30do
31        push &
32done
33
34wait
Note: See TracBrowser for help on using the repository browser.