| 1 | #! /bin/sh |
| 2 | |
| 3 | # Example script contributed by Luke Gorrie |
| 4 | |
| 5 | # "Drop-in" front end to 'make' that uses the distributed compile farm |
| 6 | # via `distcc' |
| 7 | |
| 8 | # Compile farm hosts are stored in ~bluetail/distcc-hosts. We exclude |
| 9 | # the local machine to free up resources for preprocessing and |
| 10 | # linking, since it seems to be the bottleneck (at least on |
| 11 | # kookaburra). |
| 12 | |
| 13 | DISTCC_HOSTS=$(sed s/$(hostname -s)// < /home/share/bluetail/distcc-hosts) |
| 14 | |
| 15 | make CC='/home/share/luke/bin/distcc gcc' -j 7 "$@" |
| 16 |