source: tools/build/push2dist.sh @ c680a4b

arm-ehjacob/cs343-translationnew-astnew-ast-unique-expr
Last change on this file since c680a4b was c680a4b, checked in by Thierry Delisle <tdelisle@…>, 19 months ago

Added defines.hfa to the prelude

  • Property mode set to 100755
File size: 757 bytes
RevLine 
[6716d78]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
[c680a4b]21files="../../../driver/cfa ../../../driver/cfa-cpp ../../../driver/cc1 ../../../driver/as defines.hfa $(find . -name '*.c*' | tr '\n' ' ')"
[6716d78]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.